public function testAddType() { $type = $this->getTypeMock(); $type->expects($this->once())->method('getName')->will($this->returnValue('foo')); $resolver = new Resolver(); $resolver->addType($type); $this->assertTrue($resolver->hasType('foo')); }
/** * @param string $type * @return bool */ public function supportType($type) { return $this->resolver->hasType($type); }