File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ PHPUnit %s by Sebastian Bergmann and contributors.
18
18
Runtime: %s
19
19
20
20
21
- Fatal error: Access level to B::someFunction() must be public (as in class A) in %sB.php on line %i
21
+ Fatal error: Access level to PHPUnit\ TestFixture \ B::someFunction() must be public (as in class PHPUnit \ TestFixture \ A) in %sB.php on line %i
Original file line number Diff line number Diff line change 7
7
* For the full copyright and license information, please view the LICENSE
8
8
* file that was distributed with this source code.
9
9
*/
10
+ namespace PHPUnit \TestFixture ;
11
+
12
+ use const PHP_EOL ;
13
+
10
14
class A
11
15
{
12
16
public function someFunction (): void
13
17
{
14
- print 'A::someFunction ' . \ PHP_EOL ;
18
+ print 'A::someFunction ' . PHP_EOL ;
15
19
}
16
20
}
Original file line number Diff line number Diff line change 7
7
* For the full copyright and license information, please view the LICENSE
8
8
* file that was distributed with this source code.
9
9
*/
10
+ namespace PHPUnit \TestFixture ;
11
+
12
+ use const PHP_EOL ;
13
+
10
14
class B extends A
11
15
{
12
16
// incorrect access level
13
17
protected function someFunction (): void
14
18
{
15
19
parent ::someFunction ();
16
20
17
- print 'B::someFunction ' . \ PHP_EOL ;
21
+ print 'B::someFunction ' . PHP_EOL ;
18
22
}
19
23
}
Original file line number Diff line number Diff line change 7
7
* For the full copyright and license information, please view the LICENSE
8
8
* file that was distributed with this source code.
9
9
*/
10
+ namespace PHPUnit \TestFixture ;
11
+
10
12
use PHPUnit \Framework \TestCase ;
11
13
12
14
final class IssueTest6294 extends TestCase
You can’t perform that action at this time.
0 commit comments