@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
assertStringStartsWith()
  • References/PHP/PHPUnit/Assertions

assertStringStartsWith() assertStringStartsWith(string $prefix, string $string[, string

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
@ticket
  • References/PHP/PHPUnit/Annotations

@ticket

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

assertClassHasAttribute() assertClassHasAttribute(string $attributeName, string $className[

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

assertGreaterThan() assertGreaterThan(mixed $expected, mixed $actual[, string $message

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

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

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

assertEqualXMLStructure() assertEqualXMLStructure(DOMElement $expectedElement, DOMElement

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

@expectedExceptionCode The @expectedExceptionCode annotation, in conjunction with the

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

@beforeClass The @beforeClass annotation can be used to specify static methods that should be called before any

2025-01-10 15:47:30