Ejemplo n.º 1
0
 public function testIsWithoutValidStandardizedType()
 {
     $typeReflection = new TypeReflection('string');
     $this->setExpectedException('InvalidArgumentException', '$standardizeType not valid. Should be on of the values: ["void","mixed","null","boolean","string","integer","float","number","scalar","array","object","resource","callable"]. "foo" given.');
     $this->assertFalse($typeReflection->is('foo'));
 }