lithium\tests\cases\console\command\LibraryTest::testInstall PHP Method

testInstall() public method

public testInstall ( )
    public function testInstall()
    {
        $this->skipIf(!extension_loaded('zlib'), 'The zlib extension is not loaded.');
        $this->skipIf(ini_get('phar.readonly') == '1', 'Skipped test {:class}::{:function}() - relies on {:class}::testPush()');
        $this->library->path = $this->_testPath;
        $result = $this->library->install('library_test_plugin');
        $this->assertTrue($result);
        $result = file_exists($this->_testPath . '/library_test_plugin.phar.gz');
        $this->assertTrue($result);
        $result = is_dir($this->_testPath . '/library_test_plugin');
        $this->assertTrue($result);
        Phar::unlinkArchive($this->_testPath . '/library_test_plugin.phar');
        Phar::unlinkArchive($this->_testPath . '/library_test_plugin.phar.gz');
        $this->_cleanUp();
    }