-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regression test to validate issue won't happen again
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* @author Kasim Necdet Percinel <[email protected]> | ||
*/ | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use GuzzleHttp\Client; | ||
|
||
final class SentryIssue1Test extends TestCase | ||
{ | ||
public function testItShouldDumpProperResponseCodeAndPhaseIfThereIsNoAction(): void | ||
{ | ||
//Create a Guzzle client | ||
$client = new Client(); | ||
|
||
// Send a GET request to the specified URL | ||
$response = $client->get(HV_WEB_ROOT_URL, [ | ||
'http_errors' => false | ||
]); | ||
|
||
// Assert Status code and Reason Phrase | ||
$this->assertEquals($response->getStatusCode(), 400); | ||
$this->assertEquals($response->getReasonPhrase(), 'Bad Request'); | ||
} | ||
} |