for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\PHPSA\Command;
use Tests\PHPSA\TestCase;
use PHPSA\Application;
use Symfony\Component\Console\Tester\CommandTester;
class CompileTest extends TestCase
{
public function testExecute()
$application = new Application();
$command = $application->find('compile');
$commandTester = new CommandTester($command);
$commandTester->execute(['command' => $command->getName(), 'path' => 'tests/PHPSA/Command/']);
$this->assertContains('Memory usage:', $commandTester->getDisplay());
}