]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Util/HTTPInputDataTest.php
Adapt tests using a content file
[friendica.git] / tests / src / Util / HTTPInputDataTest.php
index f1deaa7ffa5c2365a06605a4c2da0f6461c7aa66..a343e1a76e41e66ad3d0e89f1487895c75e0097c 100644 (file)
@@ -41,11 +41,11 @@ class HTTPInputDataTest extends MockedTest
        {
                return [
                        'example' => [
-                               'input'    => 'anything you want',
+                               'input'    => file_get_contents(__DIR__ . '/../../datasets/http/example1.httpinput'),
                                'expected' => [
                                        'variables' => [
-                                               'var1' => 'value',
-                                               'var2' => 'value',
+                                               'var1' => 'value1',
+                                               'var2' => 'value2',
                                        ],
                                        'files' => []
                                ]
@@ -69,6 +69,6 @@ class HTTPInputDataTest extends MockedTest
 
                HTTPInputDataDouble::setPhpInputStream($stream);
                $output = HTTPInputDataDouble::process();
-               $this->assertEqualsCanonicalizing($output, $expected);
+               $this->assertEqualsCanonicalizing($expected, $output);
        }
 }