コード例 #1
0
ファイル: TestBuild.php プロジェクト: genesis-php/example
 private function testEnvironment()
 {
     $this->logSection('Test programs');
     $this->testPrograms->execute();
     $this->logSection('Test PHP');
     $this->testPhp->execute();
     $this->logSection('Test NodeJs');
     $this->testNodeJs->execute();
     // using fooService assigned in bootstrap.php
     $this->logSection('Test App FooService service');
     $this->log($this->container->getService('fooService')->bar());
 }
コード例 #2
0
ファイル: CommandsTest.php プロジェクト: genesis-php/genesis
 public function testTestPhp()
 {
     ob_start();
     $command = new Commands\Test\Php();
     $command->setSettings(['settings' => ['register_globals' => FALSE], 'extensions' => ['PDO']]);
     $command->execute();
     $this->assertNotContains('Error', ob_get_clean());
 }