lithium\tests\cases\console\command\LibraryTest::testExtractPlugin PHP Метод

testExtractPlugin() публичный Метод

public testExtractPlugin ( )
    public function testExtractPlugin()
    {
        $this->skipIf(!extension_loaded('zlib'), 'The zlib extension is not loaded.');
        $this->library->library = 'library_plugin_test';
        $path = $this->_testPath;
        $expected = true;
        $result = $this->library->extract('plugin', "{$path}/library_test_plugin");
        $this->assertEqual($expected, $result);
        $expected = "library_test_plugin created in {$path} from " . realpath(LITHIUM_LIBRARY_PATH);
        $expected .= "/lithium/console/command/create/template/plugin.phar.gz\n";
        $result = $this->library->response->output;
        $this->assertEqual($expected, $result);
        $this->_cleanup();
    }