Example #1
0
 public function testCommand()
 {
     $project = new Project('Twig Local');
     $this->assertEquals('phpunit', $project->getCommand());
     $project->setCommand('/path/to/phpunit');
     $this->assertEquals('/path/to/phpunit', $project->getCommand());
 }
Example #2
0
 public function testDefaultCommand()
 {
     $project = new Project('Twig Local');
     $this->assertEquals('phpunit', $project->getCommand());
     Project::setDefaultCommand('phpunit --colors --strict');
     $project2 = new Project('Twig Local');
     $this->assertEquals('phpunit', $project->getCommand());
     $this->assertEquals('phpunit --colors --strict', $project2->getCommand());
     $project2->setCommand('phpunit');
     $this->assertEquals('phpunit', $project2->getCommand());
 }