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