From 817592dff7bd3572dffd66f0025ef528bdce59b1 Mon Sep 17 00:00:00 2001 From: Florian Pisani Date: Fri, 28 May 2021 14:13:49 +0200 Subject: [PATCH 1/2] Added missing integration tests for Nyholm --- tests/Nyholm/RequestTest.php | 14 ++++++++++++++ tests/Nyholm/ResponseTest.php | 14 ++++++++++++++ tests/Nyholm/ServerRequestTest.php | 16 ++++++++++++++++ tests/Nyholm/StreamTest.php | 14 ++++++++++++++ tests/Nyholm/UploadedFileTest.php | 15 +++++++++++++++ tests/Nyholm/UriTest.php | 14 ++++++++++++++ 6 files changed, 87 insertions(+) create mode 100644 tests/Nyholm/RequestTest.php create mode 100644 tests/Nyholm/ResponseTest.php create mode 100644 tests/Nyholm/ServerRequestTest.php create mode 100644 tests/Nyholm/StreamTest.php create mode 100644 tests/Nyholm/UploadedFileTest.php create mode 100644 tests/Nyholm/UriTest.php diff --git a/tests/Nyholm/RequestTest.php b/tests/Nyholm/RequestTest.php new file mode 100644 index 0000000..1bc1936 --- /dev/null +++ b/tests/Nyholm/RequestTest.php @@ -0,0 +1,14 @@ +createUploadedFile(Stream::create('writing to tempfile')); + } +} diff --git a/tests/Nyholm/UriTest.php b/tests/Nyholm/UriTest.php new file mode 100644 index 0000000..00ca910 --- /dev/null +++ b/tests/Nyholm/UriTest.php @@ -0,0 +1,14 @@ + Date: Fri, 28 May 2021 14:14:46 +0200 Subject: [PATCH 2/2] Updated phpunit.xml.dist to use Nyholm integration tests, not available in vendor folder --- phpunit.xml.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 5722406..bfe52d1 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -28,7 +28,7 @@ - ./vendor/nyholm/psr7/tests/Integration/ + ./tests/Nyholm/