php-src/ext/reflection/tests/bug30961.phpt

21 lines
320 B
Plaintext
Raw Normal View History

--TEST--
Bug #30961 (Wrong linenumber in ReflectionClass getStartLine())
--FILE--
2005-06-17 16:40:05 +00:00
<?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