Middle
What tools do you use in projects where automated testing is performed?
sobes.tech AI
Answer from AI
- PHPUnit
- Composer
- Xdebug for debugging
- PHPStan for static analysis
- PHP CS Fixer or PHP CodeSniffer for code formatting
- Jenkins, GitLab CI/CD or GitHub Actions for CI/CD
- Selenium or Cypress for end-to-end testing (if applicable)
- Doctrine Migrations or Phinx for database migration management
- Postman or Insomnia for API testing
// Example test class in PHPUnit
use PHPUnit\Framework\TestCase;
class MyTest extends TestCase
{
public function testAddition()
{
$this->assertEquals(2, 1 + 1);
}
}