Esempio n. 1
0
 /**
  * {@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');
 }
Esempio n. 2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetTypeUnmatchedException()
 {
     $this->registry->getType('z');
 }