*/ private $doctrineDeprecationsExpectations = []; /** @var array */ private $doctrineNoDeprecationsExpectations = []; public function expectDeprecationWithIdentifier(string $identifier): void { $this->doctrineDeprecationsExpectations[$identifier] = Deprecation::getTriggeredDeprecations()[$identifier] ?? 0; } public function expectNoDeprecationWithIdentifier(string $identifier): void { $this->doctrineNoDeprecationsExpectations[$identifier] = Deprecation::getTriggeredDeprecations()[$identifier] ?? 0; } /** @before */ public function enableDeprecationTracking(): void { Deprecation::enableTrackingDeprecations(); } /** @after */ 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 ) ); } } }__halt_compiler();----SIGNATURE:----GbmhEZMT1+UwLNIT8rRkOmEkgjGvAPpSuFV/OJlxIJeXqGyBEBB+UjsdNauiebneL/QF2uk7dceMalw8KtqbRg8xmDJ+rNJHpegnJHPiEmwKk1dHYGxUCh2wNBk4RdhW8JToINc7/FsWh/9JhVRq794kEHWdKPCa+/+hPcXQ1sMpbg/aNA2SmzsxbTuJn3DnQ7lBujPzrwV4LO9EAkeA6Uk1s918qUSe66CvYqWscalGc7wvh+dvGphf7H0CsHmq7KvfjoGQliM0sxjxZ+TI3oNYhAnEYxhYed3hRvGOINSM5LXlWuNu8YAx6pDw0ghALjA6aPU8YXxjVfLcVlhIplIOxSvt2uQhJef+B5jtLoft/nGyUXSRWbWkAs9lyrjIIr9uibBFk7Pv5l1Q6mWF5CRSEKiTzeXJXLIROcMYMUstS4BJmHgx+OHRMkQQflXuIDlf5PH1GOkAs+e5JiPagshTZ5UG6+acABrqo2BMgGFjlKZs0wKtgvd9pW3GRmUuZtWATS5Nfy4RTkto8AfbjummgzVpHtjw+CxxZPTIxk/L+3w3ERg46n0ntIVJN/UDw0kNeMYljSfxUSXz1uRxZM4nWEb2WTDl4BI7CessWVVihZdjTHEqQuDZeIISBDccqeTfT733qO1Od1VsoSVaW4oFy5f2rRSSPNubA8f70Ec=----ATTACHMENT:----MzM1MjY4NTQyMDg4NjczMiA5NzAzNjU5NDU5NjYzMDg3IDc2ODQ3ODczNDMwNjM5OQ==