xref: /PHP-7.2/ext/reflection/tests/bug30961.phpt (revision 610c7fbe)
1--TEST--
2Reflection Bug #30961 (Wrong linenumber in ReflectionClass getStartLine())
3--FILE--
4<?php
5    class a
6    {
7    }
8
9    class b extends a
10    {
11    }
12
13    $ref1 = new ReflectionClass('a');
14    $ref2 = new ReflectionClass('b');
15    echo $ref1->getStartLine() . "\n";
16    echo $ref2->getStartLine() . "\n";
17?>
18--EXPECT--
192
206
21