File tree Expand file tree Collapse file tree
Tests/Unit/Consumption/Extension Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace Enqueue \Bundle \Consumption \Extension ;
44
5+ use Doctrine \Common \Persistence \ManagerRegistry ;
56use Enqueue \Consumption \Context \MessageReceived ;
67use Enqueue \Consumption \MessageReceivedExtensionInterface ;
7- use Symfony \Bridge \Doctrine \RegistryInterface ;
88
99class DoctrineClearIdentityMapExtension implements MessageReceivedExtensionInterface
1010{
1111 /**
12- * @var RegistryInterface
12+ * @var ManagerRegistry
1313 */
1414 protected $ registry ;
1515
1616 /**
17- * @param RegistryInterface $registry
17+ * @param ManagerRegistry $registry
1818 */
19- public function __construct (RegistryInterface $ registry )
19+ public function __construct (ManagerRegistry $ registry )
2020 {
2121 $ this ->registry = $ registry ;
2222 }
Original file line number Diff line number Diff line change 22
33namespace Enqueue \Bundle \Tests \Unit \Consumption \Extension ;
44
5+ use Doctrine \Common \Persistence \ManagerRegistry ;
56use Doctrine \Common \Persistence \ObjectManager ;
67use Enqueue \Bundle \Consumption \Extension \DoctrineClearIdentityMapExtension ;
78use Enqueue \Consumption \Context \MessageReceived ;
1112use Interop \Queue \Processor ;
1213use PHPUnit \Framework \TestCase ;
1314use Psr \Log \LoggerInterface ;
14- use Symfony \Bridge \Doctrine \RegistryInterface ;
1515
1616class DoctrineClearIdentityMapExtensionTest extends TestCase
1717{
@@ -59,11 +59,11 @@ protected function createContext(): MessageReceived
5959 }
6060
6161 /**
62- * @return \PHPUnit_Framework_MockObject_MockObject|RegistryInterface
62+ * @return \PHPUnit_Framework_MockObject_MockObject|ManagerRegistry
6363 */
64- protected function createRegistryMock (): RegistryInterface
64+ protected function createRegistryMock (): ManagerRegistry
6565 {
66- return $ this ->createMock (RegistryInterface ::class);
66+ return $ this ->createMock (ManagerRegistry ::class);
6767 }
6868
6969 /**
You can’t perform that action at this time.
0 commit comments