I'm trying to test a HTML structure render.
I saw this method: https://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.assertions.assertTag
...But on the last version, it's obsolete.
What is now the best practice for this kind of verification ?
Best regards.
They were deprecated in 2014:
https://github.com/sebastianbergmann/phpunit/issues/1292
The new versions are in progress:
- https://github.com/lstrojny/phpunit-dom-assertions
- https://packagist.org/packages/phpunit/phpunit-dom-assertions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With