예제 #1
0
 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());
 }
예제 #2
0
 public function testGetBindings()
 {
     $this->discovery->addBinding(new ResourceBinding('/path', Foo::clazz));
     $this->assertSame(array(), $this->discovery->getBindings());
 }