*/ 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:----kobJAbsFweBRQdmTJhfD/aulhawqyzIBzWS3ooJHDx5ViS3WTxdFutVLy+JXX2xu49u2Y50skqU7xoahWSYburc9b7FQqrZE6No0GxoXbFpzvOYT84k/FPBX/mr7msPpNzLXOlyb8njnAkRLI+yfpspYulF9WZeGQ2lzzhjEBDfVPyGnDiQC21oEH2dsNCltjNrO0jmkFRv6nKo6i+hqKrF0QBdq99WyH0IY5ewAwppQqIQaZS0NRK4FHB/OO42BZvoMmKM3K67ga2T6tmHNOggAzPpUrGSKgyv81ERMJucZwZ3dRlD+9EuCKKlUQvEljNXtdAsNrW/q40qYY8GjRmYV9xqvuE5ZmhPEXsubYYYp+tuUOEvf6dETfow4I+h+BqNkCc4k6qzED9LwYBagfEsgFbievE55NowqrkoXYIuh9Ommv4U8OKlLnUM629CPWqPjRmH18bctBBNOYzh3N/gRVQyN/kRzWCgo/jKAUfOYzOWOvZrKsh7xGIqyObrMfOweuwjR7Gq1UjJD+hI9aw9o2jMsdQdb7kB8+Xb6nXvMB2XFrJsMMcfLsTFrxIuf3tgG6nqKXUF+DcdpTO2yProZ0aLVrDZ4icdZW2OeohGGRYTEdHMUtYMfCK+PgKE4Ag4tAuBIcQzRp0RFLCCUWm6IjGI5DLdvgfE5x1IFaF8=----ATTACHMENT:----MjA5ODg2MzgzNzExODg2NSAxMzIwMzU5NjUxNTY3OTM0IDM2NDQ0MDQwMDg5NTY5NTA=