type, 'Property does not return correct value.' ); self::assertSame( 'templates/zhadum.tpl', $validation->filePath, 'Property does not return correct value.' ); self::assertSame( 4, $validation->line, 'Property does not return correct value.' ); self::assertSame( 20, $validation->column, 'Property does not return correct value.' ); self::assertSame( 'template is not valid', $validation->description, 'Property does not return correct value.' ); self::assertSame( 'unknown function "list_types"', $validation->details, 'Property
does not return correct value.' ); } /** * Test modifying properties */ public function testSetProperties() { $validation = new ezcTemplateValidationItem( ezcTemplateValidationItem::TYPE_ERROR, 'templates/zhadum.tpl', 4, 20, 'template is not valid', 'unknown function "list_types"' ); self::assertSetProperty( $validation, 'type', array( ezcTemplateValidationItem::TYPE_WARNING, ezcTemplateValidationItem::TYPE_ERROR ) ); self::assertSetProperty( $validation, 'filePath', array( 'templates/pagelayout.tpl', '', 'templates/zhadum.tpl' ) ); self::assertSetProperty( $validation, 'line', array( 0, 1, 200, 4 ) ); self::assertSetProperty( $validation, 'column', array( 0, 1, 5, 20 ) ); self::assertSetProperty( $validation, 'description', array( 'errors in template', 'template is not valid' ) ); self::assertSetProperty( $validation, 'details', array( 'invalid syntax {$list|wash}', 'unknown function "list_types"' ) ); } } ?>