Skip to content

Commit

Permalink
Fix new IO interface
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Feb 25, 2016
1 parent a8278be commit a26e7d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/Fixtures/IO/MockIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function isDecorated()
/**
* {@inheritdoc}
*/
public function write($messages, $newline = true)
public function write($messages, $newline = true, $verbosity = self::NORMAL)
{
$pos = max(count($this->traces) - 1, 0);
if (isset($this->traces[$pos])) {
Expand All @@ -99,15 +99,15 @@ public function write($messages, $newline = true)
/**
* {@inheritdoc}
*/
public function writeError($messages, $newline = true)
public function writeError($messages, $newline = true, $verbosity = self::NORMAL)
{
$this->write($messages, $newline);
$this->write($messages, $newline, $verbosity);
}

/**
* {@inheritdoc}
*/
public function overwrite($messages, $newline = true, $size = 80)
public function overwrite($messages, $newline = true, $size = 80, $verbosity = self::NORMAL)
{
$pos = max(count($this->traces) - 1, 0);
$this->traces[$pos] = $messages;
Expand All @@ -116,9 +116,9 @@ public function overwrite($messages, $newline = true, $size = 80)
}
}

public function overwriteError($messages, $newline = true, $size = null)
public function overwriteError($messages, $newline = true, $size = null, $verbosity = self::NORMAL)
{
$this->overwrite($messages, $newline, $size);
$this->overwrite($messages, $newline, $size, $verbosity);
}

/**
Expand Down

0 comments on commit a26e7d7

Please sign in to comment.