Source

						public function testArchiveNoLibrary() {
		$this->skipIf(!extension_loaded('zlib'), 'The zlib extension is not loaded.');
		$this->skipIf(
			ini_get('phar.readonly') == '1',
			'INI setting phar.readonly = On'
		);

		chdir('new');
		$app = new Library(array('request' => new Request(), 'classes' => $this->classes));
		$app->library = 'does_not_exist';

		$result = $app->archive();
		$this->assertTrue($result);

		$path = realpath($this->_testPath);
		$expected = "new.phar.gz created in {$path} from {$path}/new\n";
		$result = $app->response->output;
		$this->assertEqual($expected, $result);

		Phar::unlinkArchive($this->_testPath . '/new.phar');
		Phar::unlinkArchive($this->_testPath . '/new.phar.gz');

		$this->_cleanUp('tests/new');
		rmdir($this->_testPath . '/new');
	}