[PEPr] Comment on Semantic Web::XML_GRDDL
| From: | Daniel O'Connor | Date: | Sun, 02 Mar 2008 14:33:09 +0000 |
| Subject: | [PEPr] Comment on Semantic Web::XML_GRDDL | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-49222@lists.php.net to get a copy of this message | ||
Daniel O'Connor (http://pear.php.net/user/doconnor) has commented on the proposal for Semantic
Web::XML_GRDDL.
Comment:
>> 2) I have a pre-rendered out RDF/XML document to compare my generated
>> (...)
>> - there's no PHPUnit::assertEqual($xml, $other_xml); which handles all
>> of the ins and outs that a string comparison won't cut it for.
> Can you explain this? Are you talking about the difference in linebreaks
and possible whitespace? Or what exactly keeps you from a simple string
comparison?
Well, it's not just whitespace, line endings and other minor snafu.
Cocument A contains
<a>
<b />
<c />
</a>
while document B contains
<a>
<c />
<b />
</a>
In essence, they represent the same information, but aren't the same
document.
What I'm currently doing is:
- Make use of the w3c's python compliance tools (in progress)
- Amend test cases for PHP, having manually verified equivalence
... which seems to have resolved my problem; but may be Bad Testing Karma.
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=533
--
Sent by PEPr, the automatic proposal system at http://pear.php.net