Changeset 334 for cleversvg/trunk/tests/csDocumentTest.php
- Timestamp:
- 03/01/08 22:38:45 (4 years ago)
- Files:
-
- 1 modified
-
cleversvg/trunk/tests/csDocumentTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cleversvg/trunk/tests/csDocumentTest.php
r326 r334 15 15 $doc = $this->generateTestDoc(); 16 16 $doc->setDescription('Added description'); 17 $xml = $doc->toXML(); 18 $this->assertEquals(preg_match('#<desc>Added description</desc>#si', $xml), 1, $xml); 17 $this->assertTextNodeEquals($doc, '/svg:svg/svg:desc', 'Added description'); 18 $doc->setDescription('Changed description'); 19 $this->assertTextNodeEquals($doc, '/svg:svg/svg:desc', 'Changed description'); 19 20 } 20 21 … … 22 23 { 23 24 $doc = $this->generateTestDoc(); 25 $doc->setTitle('Added title'); 26 $this->assertTextNodeEquals($doc, '/svg:svg/svg:title', 'Added title'); 24 27 $doc->setTitle('Changed title'); 25 $xml = $doc->toXML(); 26 $this->assertEquals(preg_match('#<title>Changed title</title>#si', $xml), 1, $xml); 28 $this->assertTextNodeEquals($doc, '/svg:svg/svg:title', 'Changed title'); 27 29 } 28 30
