diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-12-22 09:43:11 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-12-22 09:43:11 +0300 |
commit | 36b1997c5b3306a9d8dd211b781aa0d0c87ab09f (patch) | |
tree | 316e43bb8f9a57f746cd52a55f1baafd1e49fab3 /tests/PHPUnit/Integration | |
parent | e8ed1b23b8746f8ace52b8e00d2d0362b49cc8d7 (diff) |
Remove output that can be ignored in climulti (#15277)
Diffstat (limited to 'tests/PHPUnit/Integration')
-rw-r--r-- | tests/PHPUnit/Integration/CliMulti/OutputTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/CliMulti/OutputTest.php b/tests/PHPUnit/Integration/CliMulti/OutputTest.php index a50fbe52b5..c01993f459 100644 --- a/tests/PHPUnit/Integration/CliMulti/OutputTest.php +++ b/tests/PHPUnit/Integration/CliMulti/OutputTest.php @@ -114,6 +114,14 @@ class OutputTest extends \PHPUnit_Framework_TestCase $this->assertEquals($anyContent, $this->output->get()); } + public function test_get_write_shouldRemoveHashBang() + { + $anyContent = "\n#!/usr/bin/env php {}"; + $this->output->write($anyContent); + + $this->assertEquals('{}', $this->output->get()); + } + public function test_write_shouldNotAppend_IfWriteIsCalledTwice() { $anyContent = 'My Actual Content'; |