Ejemplo n.º 1
0
 /**
  * @param mixed $var
  * @param string $type
  * @dataProvider provideCreateFromVariable
  */
 public function testCreateFromVariable($var, $type)
 {
     $typeReflection = TypeReflection::createFromVariable($var);
     $this->assertSame($type, $typeReflection->getType());
 }
Ejemplo n.º 2
0
 public function testIsResource()
 {
     $typeReflection = new TypeReflection('resource');
     $this->assertTrue($typeReflection->isResource());
 }