@large
  • References/PHP/PHPUnit/Annotations

@large The @large annotation is an alias for @group large.

2025-01-10 15:47:30
@covers
  • References/PHP/PHPUnit/Annotations

@covers The @covers annotation can be used in the test code to specify which method(s) a test method wants to

2025-01-10 15:47:30
Organizing Tests
  • References/PHP/PHPUnit/Guides

One of the goals of PHPUnit is that tests should be composable: we want to be able to run any number or combination of tests together, for instance all tests for the whole

2025-01-10 15:47:30
assertThat()
  • References/PHP/PHPUnit/Assertions

assertThat() More complex assertions can be formulated using the PHPUnit_Framework_Constraint classes. They can

2025-01-10 15:47:30
assertContainsOnly()
  • References/PHP/PHPUnit/Assertions

assertContainsOnly() assertContainsOnly(string $type, Iterator|array $haystack[, boolean

2025-01-10 15:47:30
@afterClass
  • References/PHP/PHPUnit/Annotations

@afterClass The @afterClass annotation can be used to specify static methods that should be called after all test

2025-01-10 15:47:30
@dataProvider
  • References/PHP/PHPUnit/Annotations

@dataProvider A test method can accept arbitrary arguments. These arguments are to be provided by a data provider method (

2025-01-10 15:47:30
assertEquals()
  • References/PHP/PHPUnit/Assertions

assertEquals() assertEquals(mixed $expected, mixed $actual[, string $message = ''])

2025-01-10 15:47:30
Database Testing
  • References/PHP/PHPUnit/Guides

Many beginner and intermediate unit testing examples in any programming language suggest that it is perfectly easy to test your application's logic with simple tests. For

2025-01-10 15:47:30
assertNull()
  • References/PHP/PHPUnit/Assertions

assertNull() assertNull(mixed $variable[, string $message = ''])

2025-01-10 15:47:30