@@ 972-982 (lines=11) @@ | ||
969 | * @expectedException \InvalidArgumentException |
|
970 | * @expectedExceptionMessage EntityListenerServiceResolver |
|
971 | */ |
|
972 | public function testLazyEntityListenerResolverWithoutCorrectInterface() : void |
|
973 | { |
|
974 | $container = $this->getContainer([]); |
|
975 | $loader = new DoctrineExtension(); |
|
976 | $container->registerExtension($loader); |
|
977 | $container->addCompilerPass(new EntityListenerPass()); |
|
978 | ||
979 | $this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface'); |
|
980 | ||
981 | $this->compileContainer($container); |
|
982 | } |
|
983 | ||
984 | public function testPrivateLazyEntityListener() : void |
|
985 | { |
|
@@ 1002-1012 (lines=11) @@ | ||
999 | * @expectedException \InvalidArgumentException |
|
1000 | * @expectedExceptionMessageRegExp /The service ".*" must not be abstract\./ |
|
1001 | */ |
|
1002 | public function testAbstractEntityListener() : void |
|
1003 | { |
|
1004 | $container = $this->getContainer([]); |
|
1005 | $loader = new DoctrineExtension(); |
|
1006 | $container->registerExtension($loader); |
|
1007 | $container->addCompilerPass(new EntityListenerPass()); |
|
1008 | ||
1009 | $this->loadFromFile($container, 'orm_entity_listener_abstract'); |
|
1010 | ||
1011 | $this->compileContainer($container); |
|
1012 | } |
|
1013 | ||
1014 | public function testRepositoryFactory() : void |
|
1015 | { |