summaryrefslogtreecommitdiffstats
path: root/tests/unit/articleenhancer/EnhancerTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <Raydiation@users.noreply.github.com>2015-03-30 19:40:07 +0200
committerBernhard Posselt <Raydiation@users.noreply.github.com>2015-03-30 19:40:07 +0200
commit05985bc2965f8a332e98121050ba1f07343bbc0f (patch)
tree96ca5d59b7ce3c9d3678dd95d8595145d1d5df08 /tests/unit/articleenhancer/EnhancerTest.php
parenteb7fc97f33cadcf041a06915b8f1650a9b4f6bbb (diff)
parentee3d2332ec97487893ae5f1f46b599c550b25eb6 (diff)
Merge pull request #751 from owncloud/next
Changes for 8.1
Diffstat (limited to 'tests/unit/articleenhancer/EnhancerTest.php')
-rw-r--r--tests/unit/articleenhancer/EnhancerTest.php5
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);