public function testSaveNotExistingDir()
{
$oPhpPresentation = new PhpPresentation();
$oSlide = $oPhpPresentation->getActiveSlide();
$oImage = $oSlide->createDrawingShape();
$oImage->setPath(PHPPRESENTATION_TESTS_BASE_DIR . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'PhpPresentationLogo.png');
$object = new Serialized($oPhpPresentation);
$file = tempnam(sys_get_temp_dir(), 'PhpPresentation_Serialized');
$this->assertFileExists($file, $object->save($file . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'test'));
}