コード例 #1
0
 public function testInvalidArgumentExceptionThrownOnNonExistingTransformer()
 {
     $this->setExpectedException('MediaMonks\\Doctrine\\Exception\\InvalidArgumentException');
     $this->transformerPool->get('non_existing_transformer');
 }
コード例 #2
0
 /**
  * @param string $name
  * @return TransformerInterface
  */
 protected function getTransformer($name)
 {
     return $this->transformerPool->get($name);
 }