Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix test
  • Loading branch information
euromark committed Aug 22, 2014
1 parent 431088d commit 04bb238
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/TestCase/View/Helper/TextHelperTest.php
Expand Up @@ -82,7 +82,7 @@ public function tearDown() {
*/
public function testTextHelperProxyMethodCalls() {
$methods = array(
'stripLinks', 'excerpt', 'toList', 'tail',
'stripLinks', 'excerpt', 'toList'
);
$String = $this->getMock(__NAMESPACE__ . '\StringMock', $methods);
$Text = new TextHelperTestObject($this->View, array('engine' => __NAMESPACE__ . '\StringMock'));
Expand All @@ -102,6 +102,17 @@ public function testTextHelperProxyMethodCalls() {
$String->expects($this->at(0))->method($method);
$Text->{$method}('who', array('what'));
}

$methods = array(
'tail'
);
$String = $this->getMock(__NAMESPACE__ . '\StringMock', $methods);
$Text = new TextHelperTestObject($this->View, array('engine' => __NAMESPACE__ . '\StringMock'));
$Text->attach($String);
foreach ($methods as $method) {
$String->expects($this->at(0))->method($method);
$Text->{$method}('who', 1, array('what'));
}
}

/**
Expand Down

0 comments on commit 04bb238

Please sign in to comment.