Skip to content

Commit

Permalink
Make test more portable
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Jan 6, 2025
1 parent 1452553 commit 6cee810
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/ContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ public function testDebugLocation(): void
{
$this->assertOpenApiLogEntryContains('Required @OA\PathItem() not found');
$openapi = (new Generator($this->getTrackingLogger()))
->setAnalyser(new TokenAnalyser())
->generate([$this->fixture('Customer.php')]);

$customerSchema = $openapi->components->schemas[0];
$this->assertStringContainsString(
'Fixtures/Customer.php on line 16',
'Fixtures/Customer.php on line ',
$customerSchema->_context->getDebugLocation()
);

Expand Down

0 comments on commit 6cee810

Please sign in to comment.