public function testWrongType() { $this->metadata->expects($this->once())->method('hasField')->with($this->equalTo('property_path'))->will($this->returnValue(true)); $guesser = new TypeGuesser($this->transformer, 'other_type'); $this->assertNull($guesser->getTransformerInfo($this->columnInfo, $this->metadata)); }
/** * {@inheritdoc} */ public function getTransformerInfo(ColumnInfoInterface $columnInfo, ClassMetadata $metadata) { return count($columnInfo->getSuffixes()) > 0 ? parent::getTransformerInfo($columnInfo, $metadata) : null; }