diff options
Diffstat (limited to 'tests/unit/articleenhancer/EnhancerTest.php')
-rw-r--r-- | tests/unit/articleenhancer/EnhancerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/articleenhancer/EnhancerTest.php b/tests/unit/articleenhancer/EnhancerTest.php index d25b20dc7..f7dc2246e 100644 --- a/tests/unit/articleenhancer/EnhancerTest.php +++ b/tests/unit/articleenhancer/EnhancerTest.php @@ -52,14 +52,15 @@ class EnhancerTest extends \PHPUnit_Framework_TestCase { 'http://test.com/', 'http://www.test.com' ]; - for ($i=0; $i < count($urls); $i++) { + $count = count($urls); + for ($i=0; $i < $count; $i++) { $this->articleEnhancer->expects($this->at($i)) ->method('enhance') ->with($this->equalTo($item)) ->will($this->returnValue($item)); } - for ($i=0; $i < count($urls); $i++) { + for ($i=0; $i < $count; $i++) { $url = $urls[$i]; $result = $this->enhancer->enhance($item, $url); $this->assertEquals($item, $result); |