assertCount() assertCount($expectedCount, $haystack[, string $message = ''])
assertLessThanOrEqual() assertLessThanOrEqual(mixed $expected, mixed $actual[, string
@before The @before annotation can be used to specify methods that should be called before each test method in
assertInfinite() assertInfinite(mixed $variable[, string $message = ''])
assertFileExists() assertFileExists(string $filename[, string $message = ''])
Example 2.1 shows how we can write tests using PHPUnit that exercise PHP's array operations. The example introduces the basic conventions and steps for writing tests with
@beforeClass The @beforeClass annotation can be used to specify static methods that should be called before any
assertSame() assertSame(mixed $expected, mixed $actual[, string $message = ''])
assertXmlFileEqualsXmlFile() assertXmlFileEqualsXmlFile(string $expectedFile, string
@uses The @uses annotation specifies code which will be executed by a test, but is not intended to be covered
Page 8 of 9