示例#1
0
 public function testStopUsage()
 {
     Nano::setApplication(null);
     self::assertEquals(200, $this->cli->run(array('no-description')));
     self::assertContains('[script stop message]', $this->getActualOutput());
 }
示例#2
0
文件: CommonTest.php 项目: visor/nano
 public function testRunShouldReturnScriptResultAfterExecute()
 {
     Nano::setApplication(null);
     self::assertEquals(100, $this->cli->run(array('test-script')));
     self::assertContains('[test script was run]', $this->getActualOutput());
 }