Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Nov 27, 2024
1 parent 9a9fe4d commit 8309699
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/AbstractRequesterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,24 +100,6 @@ public function testExpectParamError()
$this->assertRequestException($request, NotMatchedException::class, "Expected 'petId' to be numeric, but found 'ABC'.");
}

public function testExpectParamErrorRequired()
{
$expectedResponse = Response::getInstance(200)
->withBody(new MemoryStream(json_encode([
"id" => 1,
"name" => "Spike",
"photoUrls" => []
])));

// Basic Request
$request = new MockRequester($expectedResponse);
$request
->withMethod('GET')
->withPath("/pet/");

$this->assertRequestException($request, NotMatchedException::class, "Expected 'petId' to be numeric, but found 'ABC'.");
}

/**
* @throws DefinitionNotFoundException
* @throws GenericSwaggerException
Expand Down

0 comments on commit 8309699

Please sign in to comment.