function VerifyDeprecations::verifyDeprecationsAreTriggered
@after
File
-
vendor/
doctrine/ deprecations/ lib/ Doctrine/ Deprecations/ PHPUnit/ VerifyDeprecations.php, line 40
Class
Namespace
Doctrine\Deprecations\PHPUnitCode
public function verifyDeprecationsAreTriggered() : void {
foreach ($this->doctrineDeprecationsExpectations as $identifier => $expectation) {
$actualCount = Deprecation::getTriggeredDeprecations()[$identifier] ?? 0;
$this->assertTrue($actualCount > $expectation, sprintf("Expected deprecation with identifier '%s' was not triggered by code executed in test.", $identifier));
}
foreach ($this->doctrineNoDeprecationsExpectations as $identifier => $expectation) {
$actualCount = Deprecation::getTriggeredDeprecations()[$identifier] ?? 0;
$this->assertTrue($actualCount === $expectation, sprintf("Expected deprecation with identifier '%s' was triggered by code executed in test, but expected not to.", $identifier));
}
}