Exemple #1
0
 /**
  * @expectedException \Symfony\Component\Form\Exception\InvalidArgumentException
  */
 public function testGetTypeThrowsExceptionIfTypeNotFound()
 {
     $this->registry->getType('bar');
 }
 /**
  * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
  */
 public function testGetTypeThrowsExceptionIfNoString()
 {
     $this->registry->getType(array());
 }