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

testExtract() public method

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