| @@ 21-31 (lines=11) @@ | ||
| 18 | self::assertEquals('dtc_queue', $dtcQueueExtension->getAlias()); |
|
| 19 | } |
|
| 20 | ||
| 21 | public function tryBadConfigs(array $configs) |
|
| 22 | { |
|
| 23 | $dtcQueueExtension = new DtcQueueExtension(); |
|
| 24 | $containerBuilder = new ContainerBuilder(); |
|
| 25 | try { |
|
| 26 | $dtcQueueExtension->load($configs, $containerBuilder); |
|
| 27 | self::fail('should not reach here'); |
|
| 28 | } catch (\Exception $exception) { |
|
| 29 | self::assertTrue(true); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| 33 | public function testBeanstalkExtension() |
|
| 34 | { |
|
| @@ 51-64 (lines=14) @@ | ||
| 48 | self::assertEquals('somehost', $containerBuilder->getParameter('dtc_queue.beanstalkd.host')); |
|
| 49 | } |
|
| 50 | ||
| 51 | protected function tryGoodConfigs(array $configs) |
|
| 52 | { |
|
| 53 | $dtcQueueExtension = new DtcQueueExtension(); |
|
| 54 | $containerBuilder = new ContainerBuilder(); |
|
| 55 | ||
| 56 | try { |
|
| 57 | $dtcQueueExtension->load($configs, $containerBuilder); |
|
| 58 | } catch (\Exception $exception) { |
|
| 59 | self::fail($exception->getMessage()); |
|
| 60 | } |
|
| 61 | self::assertTrue(true); |
|
| 62 | ||
| 63 | return $containerBuilder; |
|
| 64 | } |
|
| 65 | ||
| 66 | public function testRabbitMq() |
|
| 67 | { |
|