Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | public function test_define_create() |
||
24 | { |
||
25 | $bindings = array( |
||
26 | array('exchange' => 'bar', 'routing_key' => 'foo.#') |
||
27 | ); |
||
28 | |||
29 | $exception = $this->get404Exception(); |
||
30 | $this->bindings->get('vhost', 'bar', 'foo', 'foo.#')->willThrow($exception->reveal()); |
||
31 | |||
32 | $this->bindings->create('vhost', 'bar', 'foo', 'foo.#')->shouldBeCalled(); |
||
33 | |||
34 | $this->bindingManager->define($this->configuration->reveal(), 'foo', $bindings); |
||
35 | } |
||
36 | |||
50 |