예제 #1
0
파일: Script.php 프로젝트: visor/nano
 /**
  * @return \Nano\Application
  */
 public function getApplication()
 {
     return $this->cli->getApplication();
 }
예제 #2
0
 public function testGettingApplication()
 {
     self::assertSame($this->cli->getApplication(), $this->getScript('test-script')->getApplication());
     self::assertSame($this->cli->getApplication(), $this->getScript('no-description')->getApplication());
 }
예제 #3
0
파일: CommonTest.php 프로젝트: visor/nano
 public function testApplicationShouldBeNullIfAnotherClassInstance()
 {
     chDir($this->files->get($this, '/not-instance'));
     self::assertEquals(0, $this->cli->run(array()));
     self::assertNull($this->cli->getApplication());
 }