예제 #1
0
 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
 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());
 }