|
|
|
|
|
by ZeroGravitas
4479 days ago
|
|
PHPUnit has assertions for matching against CSS selectors, assertSelectCount and friends. http://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.ht.... Which is basically turning them into AssertTag calls behind the scenes, which is good as they can be cumbersome to write if not very simple. The main problem I had with it was the poor error messages it provides on failure (basically "false != true" rather than printing out what it was looking for and what it had found to provide context). It doesn't look like Nette is going to give any better error messages since it's just passing true or false into a simple Assert. |
|