getMessage(), 'Exception message is not correct' ); } /** * Test 'file not readable' constructor values */ public function testFileNotReadable() { $e = new ezcTemplateFileNotReadableException( '/dev/nvram' ); self::assertSame( "The requested template file '/dev/nvram' is not readable.", $e->getMessage(), 'Exception message is not correct' ); } /** * Test 'file not writeable' constructor values */ public function testFileNotWriteable() { $e = new ezcTemplateFileNotWriteableException( '/dev/cdrom' ); self::assertSame( "The requested template file '/dev/cdrom' is not writeable.", $e->getMessage(), 'Exception message is not correct' ); } /** * Test 'file failed unlink' constructor values */ public function testFileFailedUnlink() { $e = new ezcTemplateFileFailedUnlinkException( 'index.php' ); self::assertSame( "Unlinking template file 'index.php' failed.", $e->getMessage(), 'Exception message is not correct' ); } /** * Test 'file failed rename' constructor values */ public function testFileFailedRename() { $e = new ezcTemplateFileFailedRenameException( 'index.php~', 'index.php' ); self::assertSame( "Renaming template file from 'index.php~' to 'index.php' failed.", $e->getMessage(), 'Exception message is not correct' ); } } ?>