Skip to content

Commit

Permalink
fix invalid class reference
Browse files Browse the repository at this point in the history
\Foo\Bar\Baz is used as a dummy class in there, so it should not be
referenced using ::class.

\Foo\Bar\Baz class is present in
phpunit\php-token-stream\tests\_fixture\classExtendsNamespacedClass.php
but it is completely unrelated and not autoloaded.
  • Loading branch information
mhujer authored and sebastianbergmann committed Jan 27, 2018
1 parent e3e80aa commit 65fa743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Util/TestTest.php
Expand Up @@ -34,7 +34,7 @@ public function testGetExpectedException(): void
);

$this->assertArraySubset(
['class' => \Foo\Bar\Baz::class, 'code' => null, 'message' => ''],
['class' => 'Foo\Bar\Baz', 'code' => null, 'message' => ''],
Test::getExpectedException(\ExceptionTest::class, 'testThree')
);

Expand Down

0 comments on commit 65fa743

Please sign in to comment.