Where can I find a list of all PHPUnit assertions?
A:
http://google.com/?q=phpunit+assertions
They seem to be listed at the first result....
Dominic Rodger
2009-02-20 12:15:55
Yeah, apologies - that was a bit grumpy of me. I should probably have linked to google.com instead. Didn't see the animation stuff til I loaded up the link, I'd agree with your categorisation of that as a bit smart ass. I've changed the link.
Dominic Rodger
2009-02-20 12:31:34
It's important to tell people when they're being lazy and should RTFM or Google.
2009-02-20 13:20:02
Dominic - my previous comment removedmozboz - the idea behind Stack overflow is to create a almost a Wiki like site of programming knowledge is it not?
2009-02-20 13:59:29
rmbarnes - I suppose opinions on that would vary widely. Personally, I think it's probably more geared towards helping people with specific problems, rather than information requests.
Dominic Rodger
2009-02-20 15:26:50
+9
A:
See http://www.phpunit.de/manual/3.3/en/phpunit-book.html
assertArrayHasKey()
assertClassHasAttribute()
assertClassHasStaticAttribute()
assertContains()
assertContainsOnly()
assertEqualXMLStructure()
assertEquals()
assertFalse()
assertFileEquals()
assertFileExists()
assertGreaterThan()
assertGreaterThanOrEqual()
assertLessThan()
assertLessThanOrEqual()
assertNotNull()
assertObjectHasAttribute()
assertRegExp()
assertSame()
assertSelectCount()
assertSelectEquals()
assertSelectRegExp()
assertStringEqualsFile()
assertTag()
assertThat()
assertTrue()
assertType()
assertXmlFileEqualsXmlFile()
assertXmlStringEqualsXmlFile()
assertXmlStringEqualsXmlString()
Christophe Herreman
2009-02-20 12:16:50