/** * @return \Nano\Application */ public function getApplication() { return $this->cli->getApplication(); }
public function testGettingApplication() { self::assertSame($this->cli->getApplication(), $this->getScript('test-script')->getApplication()); self::assertSame($this->cli->getApplication(), $this->getScript('no-description')->getApplication()); }
public function testApplicationShouldBeNullIfAnotherClassInstance() { chDir($this->files->get($this, '/not-instance')); self::assertEquals(0, $this->cli->run(array())); self::assertNull($this->cli->getApplication()); }