Пример #1
0
 /**
  * @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
 public function testApplicationShouldBeNullIfAnotherClassInstance()
 {
     chDir($this->files->get($this, '/not-instance'));
     self::assertEquals(0, $this->cli->run(array()));
     self::assertNull($this->cli->getApplication());
 }