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