*/ 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:----awzG4hvygGOy+MFolYqUHetatiud2wNXD/xN4cVYFnyZDX/Vitq0lIDpuRZEAl+OcTf+cvEcrntldD3UnJBgwH1tfF7gTBh/NisRYIZ8otDPt1kNE9YL1syyHoFCHFZxEYOrh/I2s1ThhOHyRTS6LXnmFuen+VsXr1HVqjlyWDp+CKgWNtQFFpln5gktWwJsn/XPDigWvvqWLv0YegrINMvo8MVgtXwBjXJS8Bcr3mByrBghz+F3Rxu5w9cLaP/HY7PSQr3DNna9btjhonqjD1VtJ1dqhe2RkniawOe5NAD6OQsdZXmPnV/pZqnEMQQEFmU3KkwcX+PyjzOV7cFsjbCmGAeMqSs6KNkiNdyRQZ989R3vcXYIu+4QA2sPgSh5sYnrW590GnQ5t1mmlJ8dr7xTbBOysBhPAKy80naGpzNnr8z++vxgr2FZGDGKjrhPmPxpwOANgvg74ML07qx+98lzgU90jCOCkWTBq2GaJ53XhItQsmYETo5Ze3A2N7pOLZ6ZSKiL6HSkcy6BKTKXoXKBLuj6FOEO/g2WF/dqBn/ecUncYOMd6VjQeQu2ZxrmHzb0U38k4lQTP6qIhfjVX9wY73xjRcNAAFbJ/OmXo+GneBRrUY34mwXmuT07knIduMzJk0YSlCP6lUvIIdqbAkMGwOjAxG5bm1DDDgW+4Lc=----ATTACHMENT:----MzIwOTUzNDAyNTMzMTAzNyAyOTk3OTU4ODI1MTM0NDc0IDQ4NjE4MTY3MTE3MTE3NzA=