@@ 12-20 (lines=9) @@ | ||
9 | class YamlRpcLoaderTest extends BaseTestCase |
|
10 | { |
|
11 | ||
12 | public function testLoadRouteInstance() |
|
13 | { |
|
14 | $loader = new YamlRpcLoader(new FileLocator(array(__DIR__.'/../../Fixtures'))); |
|
15 | $methodCollection = $loader->load('validmethod.yml'); |
|
16 | $method = $methodCollection->get('cmobi_default'); |
|
17 | ||
18 | $this->assertInstanceOf('Cmobi\RabbitmqBundle\Routing\Method', $method); |
|
19 | ||
20 | } |
|
21 | ||
22 | public function testLoadRouteName() |
|
23 | { |
|
@@ 22-29 (lines=8) @@ | ||
19 | ||
20 | } |
|
21 | ||
22 | public function testLoadRouteName() |
|
23 | { |
|
24 | $loader = new YamlRpcLoader(new FileLocator(array(__DIR__.'/../../Fixtures'))); |
|
25 | $methodCollection = $loader->load('validmethod.yml'); |
|
26 | $method = $methodCollection->get('cmobi_default'); |
|
27 | ||
28 | $this->assertSame('default', $method->getName()); |
|
29 | } |
|
30 | } |