public function testIsDeprecated() { $php = '<?php function foo() {}'; $reflector = new FunctionReflector(new StringSourceLocator($php)); $function = $reflector->reflect('foo'); $this->assertFalse($function->isDeprecated()); }