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()); }
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()); }