public function testSaveWithLibrary()
{
chdir($this->_testPath);
$create = new MockCreate(array('request' => $this->request));
$result = $create->save('test', array('namespace' => 'create_test\\tests\\cases\\models', 'use' => 'create_test\\models\\Post', 'class' => 'PostTest', 'methods' => "\tpublic function testCreate() {\n\n\t}\n"));
$this->assertTrue($result);
$result = $this->_testPath . '/create_test/tests/cases/models/PostTest.php';
$this->assertTrue(file_exists($result));
$this->_cleanUp();
}