mirror of
https://github.com/friendica/friendica
synced 2025-04-20 05:10:11 +00:00
Adapt tests using a content file
This commit is contained in:
parent
a0da84b6b0
commit
c064a39341
3 changed files with 8 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue