@@ 12-21 (lines=10) @@ | ||
9 | class YamlRpcLoaderTest extends BaseTestCase |
|
10 | { |
|
11 | ||
12 | public function testLoadRouteInstance() |
|
13 | { |
|
14 | $parser = $this->createParser(); |
|
15 | $path = __DIR__ . '/../../app/config'; |
|
16 | $loader = new YamlRpcLoader($this->getContainer(), $path, $parser); |
|
17 | $methodCollection = $loader->load('rpc_routing.yml'); |
|
18 | $method = $methodCollection->get('cmobi_rabbitmq'); |
|
19 | ||
20 | $this->assertInstanceOf('Cmobi\RabbitmqBundle\Routing\Method', $method); |
|
21 | } |
|
22 | ||
23 | public function testLoadRouteName() |
|
24 | { |
|
@@ 23-32 (lines=10) @@ | ||
20 | $this->assertInstanceOf('Cmobi\RabbitmqBundle\Routing\Method', $method); |
|
21 | } |
|
22 | ||
23 | public function testLoadRouteName() |
|
24 | { |
|
25 | $parser = $this->createParser(); |
|
26 | $path = __DIR__ . '/../../app/config'; |
|
27 | $loader = new YamlRpcLoader($this->getContainer(), $path, $parser); |
|
28 | $methodCollection = $loader->load('rpc_routing.yml'); |
|
29 | $method = $methodCollection->get('cmobi_rabbitmq'); |
|
30 | ||
31 | $this->assertSame('default', $method->getName()); |
|
32 | } |
|
33 | ||
34 | private function createParser() |
|
35 | { |