Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Apr 11, 2022
1 parent 31513c6 commit 204ba3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Cli/CliStdInTest.php
Expand Up @@ -34,7 +34,7 @@ public function testStdInNotEmpty()
{
$ramdom = Str::random();
isSame(
"string(11) \"{$ramdom}\n\"",
"Legacy Output: string(11) \"{$ramdom}\n\"",
Helper::executeReal('test:cli-stdin', ['var-dump' => null], "echo \"{$ramdom}\" | ")[1]
);
}
Expand All @@ -43,15 +43,15 @@ public function testStdInFile()
{
$file = __FILE__;
isSame(
trim(file_get_contents($file)),
"Legacy Output: ". trim(file_get_contents($file)),
Helper::executeReal('test:cli-stdin', [], "cat \"{$file}\" | ")[1]
);
}

public function testStdInSpaces()
{
isSame(
"string(2) \" \n\"",
"Legacy Output: string(2) \" \n\"",
Helper::executeReal('test:cli-stdin', ['var-dump' => null], 'echo " " | ')[1]
);
}
Expand Down

0 comments on commit 204ba3e

Please sign in to comment.