Esempio n. 1
0
 /**
  * @expectedException \Genesis\ErrorException
  * @expectedExceptionMessage PHPUnit executable not defined.
  */
 public function testPhpUnitWithMissingMandatorySetting()
 {
     $workingDir = __DIR__ . '/03';
     $command = new Commands\PhpUnit();
     $command->setWorkingDir($workingDir);
     $this->assertSame($workingDir, $command->getWorkingDir());
     $command->setTarget($workingDir);
     $options = [];
     $command->setOptions($options);
     $this->assertSame($options, $command->getOptions());
     $command->execute();
 }
Esempio n. 2
0
 public function runTests()
 {
     $this->logSection('Run PHP Unit');
     $this->phpUnit->execute();
 }