/** * {@inheritdoc} */ private function resolve($type) { if ($type instanceof ColumnTypeInterface) { return $type; } else { if (is_string($type)) { return $this->registry->getType($type); } } throw new \InvalidArgumentException('$type ColumnTypeInterface|string expected, "' . gettype($type) . '" found'); }
/** * @expectedException \InvalidArgumentException */ public function testGetTypeUnmatchedException() { $this->registry->getType('z'); }