-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Run end-to-end tests asserting an HTTP response status code
- Loading branch information
1 parent
b95f3e7
commit 0ba2609
Showing
621 changed files
with
11,921 additions
and
6 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
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 |
---|---|---|
|
@@ -8,4 +8,6 @@ vendor/ | |
.idea | ||
.DS_Store | ||
.DS_Store? | ||
tests/server.log | ||
tests/server.pid | ||
.php-cs-fixer.cache |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/ChangeLog-4.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/ChangeLog-4.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/ChangeLog-4.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/ChangeLog-5.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/ChangeLog-5.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/ChangeLog-5.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/ChangeLog-7.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/ChangeLog-7.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/ChangeLog-7.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/ChangeLog-8.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/ChangeLog-8.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/ChangeLog-8.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/1998.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/1998.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/1998.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/1999.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/1999.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/1999.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/2000.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/2000.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/2000.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/2001.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/2001.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/2001.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/2002.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/2002.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/2002.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/2003.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/2003.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/2003.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/2004.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/2004.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/2004.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/2005.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/2005.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/2005.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/2006.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/2006.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/2006.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
19 changes: 19 additions & 0 deletions
19
tests/EndToEnd/archive/2007.php-returns-http-response-status-code-200.phpt
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,19 @@ | ||
--TEST-- | ||
/archive/2007.php returns HTTP response status code 200 | ||
--FILE-- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
use phpweb\Test\Util\Http\CurlClient; | ||
|
||
$httpClient = CurlClient::fromEnvironment(getenv()); | ||
|
||
$response = $httpClient->get('/archive/2007.php'); | ||
|
||
var_dump($response->statusCode); | ||
?> | ||
--EXPECT-- | ||
int(200) |
Oops, something went wrong.