Re: [PHP] Problem with AssertTag: children count wrong

2012-05-02 Thread Jim Lucas
On 05/02/2012 10:55 AM, Michael Otteneder wrote: Hi List! I'm trying to use phpUnit's AssertTag function to make sure that some html code contains an ul element with exactly li items in it. My test looks like this: function testUnconfiguredFilter() { $matcher = array( 'tag' = 'ul',

Re: [PHP] Problem with AssertTag: children count wrong

2012-05-02 Thread Michael Otteneder
Hi, sorry, I forgot to include the class definition: class GeneratedFiltersTest extends PHPUnit_Framework_Testcase { function testUnconfiguredFilter() { $matcher = array( 'tag' = 'ul', 'children' = array( 'count' = 3, 'only' = array('tag' = 'li') )