diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-05-31 17:09:50 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-06-03 21:36:58 +0200 |
commit | 236197faf82073e3b8afca49161898eb60cee76b (patch) | |
tree | 43746f677ef76ec638866077ceaaa5155f473c60 /tests/Unit | |
parent | 25bf0d8f873f80401f27cf0723548f5b1396de85 (diff) |
Upgraded external components
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()); } /** |