public function testHasType() { $this->registry->expects($this->once())->method('hasType')->with('name')->will($this->returnValue('RESULT')); set_error_handler(array('Symfony\\Component\\Form\\Test\\DeprecationErrorHandler', 'handle')); $this->assertSame('RESULT', $this->factory->hasType('name')); restore_error_handler(); }
public function testHasType() { $this->registry->expects($this->once())->method('hasType')->with('name')->will($this->returnValue('RESULT')); $this->assertSame('RESULT', $this->factory->hasType('name')); }