Skip to content

Commit

Permalink
Exec dont spoils output with special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Oct 17, 2014
1 parent e7ef6d2 commit b53fe4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

#### 0.4.6

* [Exec] Output from buffer is not spoiled by special chars *2014-10-17*
* [PHPUnit] detect PHPUnit on Windows or when is globally installed with Composer *2014-10-17*
* Output: added methods askDefault and confirm by @bkawakami *2014-10-17*
* [Svn] Task added by @anvi *2014-08-13*
* [Stack] added dir and printed options *2014-08-12*
* [ExecTask] now uses Executable trait with printed, dir, arg, option methods added *2014-08-12*
Expand Down
2 changes: 1 addition & 1 deletion src/Task/Exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function run()

if (!$this->background and $this->isPrinted) {
$this->process->run(function ($type, $buffer) {
Process::ERR === $type ? print('ER» '.$buffer) : print($buffer);
print($buffer);
});
return new Result($this, $this->process->getExitCode(), $this->process->getOutput());
}
Expand Down
4 changes: 2 additions & 2 deletions src/Task/PHPUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public function __construct($pathToPhpUnit = null)
$this->command = $pathToPhpUnit;
} elseif (file_exists('vendor/bin/phpunit')) {
$this->command = 'vendor/bin/phpunit';
if (!empty($_SERVER['windir']))
$this->command = 'call ' . $this->command;
} elseif (!empty($_SERVER['windir'])) {
$this->command = 'call ' . $this->command;
} elseif (file_exists('phpunit.phar')) {
$this->command = 'php phpunit.phar';
} elseif (is_executable('/usr/bin/phpunit')) {
Expand Down

0 comments on commit b53fe4c

Please sign in to comment.