views:

1086

answers:

2

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
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
It's important to tell people when they're being lazy and should RTFM or Google.
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?
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
+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