/** * @expectedException \Puli\Discovery\Api\NoSuchTypeException * @expectedExceptionMessage type */ public function testFindByPathAlwaysThrowsExceptionIfTypeIsPassed() { $this->discovery->defineType('type'); $this->discovery->findByPath('/path', 'type'); }
public function testHasBindingType() { $this->discovery->addBindingType(new BindingType(Foo::clazz)); $this->assertFalse($this->discovery->hasBindingType(Foo::clazz)); }