Beispiel #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());
 }
Beispiel #2
0
 public function testTestNodejs()
 {
     ob_start();
     $command = new Commands\Test\NodeJs();
     $command->setRequiredVersion('v0.10.10');
     $command->execute();
     $this->assertNotContains('Error', ob_get_clean());
 }