public function testUnbind() { $this->assertCount(0, $this->discovery->getBindings()); $this->discovery->unbind('/path'); $this->assertFalse($this->discovery->isTypeDefined('type')); $this->assertCount(0, $this->discovery->getBindings()); }
public function testGetBindings() { $this->discovery->addBinding(new ResourceBinding('/path', Foo::clazz)); $this->assertSame(array(), $this->discovery->getBindings()); }