| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 37 | public function test_define_bindingExists() |
||
| 38 | { |
||
| 39 | $bindings = array( |
||
| 40 | array('exchange' => 'bar', 'routing_key' => 'foo.#') |
||
| 41 | ); |
||
| 42 | |||
| 43 | $this->bindings->get('vhost', 'bar', 'foo', 'foo.#')->willReturn(array()); |
||
| 44 | |||
| 45 | $this->bindings->create('vhost', 'bar', 'foo', 'foo.#')->shouldNotBeCalled(); |
||
| 46 | |||
| 47 | $this->bindingManager->define($this->configuration->reveal(), 'foo', $bindings); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |