|
@@ 149-157 (lines=9) @@
|
| 146 |
|
$this->assertCount(0, $discovery->getBindings()); |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
public function testRemoveBindingsDoesNothingIfNoneFound() |
| 150 |
|
{ |
| 151 |
|
$discovery = $this->createDiscovery(); |
| 152 |
|
$discovery->removeBindings(); |
| 153 |
|
|
| 154 |
|
$discovery = $this->loadDiscoveryFromStorage($discovery); |
| 155 |
|
|
| 156 |
|
$this->assertCount(0, $discovery->getBindings()); |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
public function testRemoveBindingsWithType() |
| 160 |
|
{ |
|
@@ 191-199 (lines=9) @@
|
| 188 |
|
$this->assertCount(0, $discovery->getBindings()); |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
public function testRemoveBindingsWithTypeDoesNothingIfTypeNotFound() |
| 192 |
|
{ |
| 193 |
|
$discovery = $this->createDiscovery(); |
| 194 |
|
$discovery->removeBindings(Foo::clazz); |
| 195 |
|
|
| 196 |
|
$discovery = $this->loadDiscoveryFromStorage($discovery); |
| 197 |
|
|
| 198 |
|
$this->assertCount(0, $discovery->getBindings()); |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
/** |
| 202 |
|
* @expectedException \InvalidArgumentException |