Skip to content

Commit

Permalink
Fix up tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed May 13, 2016
1 parent 4491622 commit b7114a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Console/Shell.php
Expand Up @@ -671,7 +671,7 @@ public function info($message = null, $newlines = 1, $level = Shell::NORMAL)
*/
public function warn($message = null, $newlines = 1)
{
return $this->err('<warning>' . $message . '</warning>', $newlines);
return $this->_io->err('<warning>' . $message . '</warning>', $newlines);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Console/ShellTest.php
Expand Up @@ -334,7 +334,7 @@ public function testInfo()
public function testWarn()
{
$this->io->expects($this->once())
->method('warn')
->method('err')
->with('<warning>Just a test</warning>', 1);

$this->Shell->warn('Just a test');
Expand Down

0 comments on commit b7114a0

Please sign in to comment.