Skip to content

Commit

Permalink
Fixes a psalm error in test case by using a string instead of static …
Browse files Browse the repository at this point in the history
…class reference for non-existent class
  • Loading branch information
gsteel committed Oct 7, 2021
1 parent 7037ad4 commit e2d495f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/Unit/ResultSet/TypeMapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Primo\Content\Document;
use Primo\Exception\InvalidArgument;
use Primo\ResultSet\TypeMap;
use Primo\UnknownClass;
use PrimoTest\Unit\Asset\BadHierarchy;
use PrimoTest\Unit\Asset\SimpleDocument;
use PrimoTest\Unit\TestCase;
Expand Down Expand Up @@ -42,7 +41,7 @@ public function testThatAnExceptionIsThrownWhenAClassDoesNotExist(): void
$this->expectExceptionMessage('The target class "Primo\UnknownClass" does not exist. Please create it or check your document type mapping configuration.');

new TypeMap([
UnknownClass::class => ['a', 'b'],
'Primo\UnknownClass' => ['a', 'b'],
]);
}

Expand Down

0 comments on commit e2d495f

Please sign in to comment.