Esempio n. 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());
 }
Esempio n. 2
0
 /**
  * @requires OS Linux|Darwin
  * Do not test on Windows
  */
 public function testTestPrograms()
 {
     ob_start();
     $command = new Commands\Test\Programs();
     $command->setRequiredPrograms(['php' => 'sudo apt-get install php5-cli']);
     $command->execute();
     $this->assertNotContains('Error', ob_get_clean());
 }