summaryrefslogtreecommitdiffstats
path: root/tests/unit/articleenhancer
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-03-21 21:43:58 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-03-21 21:43:58 +0100
commit169ff3f3aa34382ae576ce2468b1961a203b49d7 (patch)
tree1f9c2ed30722a9f9d1a44b1b8ced5a793460945c /tests/unit/articleenhancer
parent21ffa118b26672ec94ed5b7e1126e0133cb18048 (diff)
coding style fixes
Diffstat (limited to 'tests/unit/articleenhancer')
-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);