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