Beispiel #1
0
 public function testStopUsage()
 {
     Nano::setApplication(null);
     self::assertEquals(200, $this->cli->run(array('no-description')));
     self::assertContains('[script stop message]', $this->getActualOutput());
 }
Beispiel #2
0
 public function testRunShouldReturnScriptResultAfterExecute()
 {
     Nano::setApplication(null);
     self::assertEquals(100, $this->cli->run(array('test-script')));
     self::assertContains('[test script was run]', $this->getActualOutput());
 }