Last modified: 2014-09-05 08:34:24 UTC
assertTag is deprecated in phpunit 4.2: https://github.com/sebastianbergmann/phpunit/commit/e3c63e4858a29a49294f06058ab5d6cdebd7a163 We should replace it with DOMDocument and hand-written assertions.
For places where we need to crawl through the actual DOM, I much preffer to not invent our own solution. One of the PHPUnit people started a plugin for this purpouse, which we can contribute to: https://github.com/phpunit/phpunit-dom-assertions This uses the Symfony Dom Cralwer component: http://symfony.com/doc/current/components/dom_crawler.html
Note that this extension introduces a new test base class while we rather need some service class to check html. As far as I can see the plugin does not add so much code so we can also add our own little assertion class imo.