Skip to content

Commit 210279b

Browse files
staabmsebastianbergmann
authored andcommitted
move test into namespace
1 parent 3def05b commit 210279b

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

tests/end-to-end/regression/6294.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ PHPUnit %s by Sebastian Bergmann and contributors.
1818
Runtime: %s
1919

2020

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

tests/end-to-end/regression/6294/A.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10+
namespace PHPUnit\TestFixture;
11+
12+
use const PHP_EOL;
13+
1014
class A
1115
{
1216
public function someFunction(): void
1317
{
14-
print 'A::someFunction' . \PHP_EOL;
18+
print 'A::someFunction' . PHP_EOL;
1519
}
1620
}

tests/end-to-end/regression/6294/B.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10+
namespace PHPUnit\TestFixture;
11+
12+
use const PHP_EOL;
13+
1014
class B extends A
1115
{
1216
// incorrect access level
1317
protected function someFunction(): void
1418
{
1519
parent::someFunction();
1620

17-
print 'B::someFunction' . \PHP_EOL;
21+
print 'B::someFunction' . PHP_EOL;
1822
}
1923
}

tests/end-to-end/regression/6294/IssueTest6294.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10+
namespace PHPUnit\TestFixture;
11+
1012
use PHPUnit\Framework\TestCase;
1113

1214
final class IssueTest6294 extends TestCase

0 commit comments

Comments
 (0)