diff options
Diffstat (limited to 'tests/Unit')
-rw-r--r-- | tests/Unit/HelpersTest.php | 18 | ||||
-rw-r--r-- | tests/Unit/Http/RequestTest.php | 3 |
2 files changed, 4 insertions, 17 deletions
diff --git a/tests/Unit/HelpersTest.php b/tests/Unit/HelpersTest.php index 6d182907..ad677cb3 100644 --- a/tests/Unit/HelpersTest.php +++ b/tests/Unit/HelpersTest.php @@ -55,7 +55,7 @@ class HelpersTest extends TestCase } /** - * @covers \base_path() + * @covers \base_path */ public function testBasePath() { @@ -99,7 +99,7 @@ class HelpersTest extends TestCase } /** - * @covers \config_path() + * @covers \config_path */ public function testConfigPath() { @@ -118,20 +118,6 @@ class HelpersTest extends TestCase } /** - * @covers \env - */ - public function testEnv() - { - putenv('envTestVar=someContent'); - - $env = env('envTestVar'); - $this->assertEquals('someContent', $env); - - $env = env('someRandomEnvVarThatShouldNeverExist', 'someDefaultValue'); - $this->assertEquals('someDefaultValue', $env); - } - - /** * @covers \request */ public function testRequest() diff --git a/tests/Unit/Http/RequestTest.php b/tests/Unit/Http/RequestTest.php index 4d942311..3f52709d 100644 --- a/tests/Unit/Http/RequestTest.php +++ b/tests/Unit/Http/RequestTest.php @@ -286,7 +286,7 @@ class RequestTest extends TestCase { $filename = tempnam(sys_get_temp_dir(), 'test'); file_put_contents($filename, 'LoremIpsum!'); - $files = [new SymfonyFile($filename, 'foo.txt', 'text/plain', 11)]; + $files = [new SymfonyFile($filename, 'foo.txt', 'text/plain', UPLOAD_ERR_PARTIAL)]; $request = new Request([], [], [], [], $files); $uploadedFiles = $request->getUploadedFiles(); @@ -298,6 +298,7 @@ class RequestTest extends TestCase $this->assertEquals('foo.txt', $file->getClientFilename()); $this->assertEquals('text/plain', $file->getClientMediaType()); $this->assertEquals(11, $file->getSize()); + $this->assertEquals(UPLOAD_ERR_PARTIAL, $file->getError()); } /** |