php-src/ext/reflection/tests/bug30961.phpt
2012-10-10 10:27:49 +08:00

21 lines
331 B
PHP

--TEST--
Reflection Bug #30961 (Wrong linenumber in ReflectionClass getStartLine())
--FILE--
<?php
class a
{
}
class b extends a
{
}
$ref1 = new ReflectionClass('a');
$ref2 = new ReflectionClass('b');
echo $ref1->getStartLine() . "\n";
echo $ref2->getStartLine() . "\n";
?>
--EXPECT--
2
6