summaryrefslogtreecommitdiffstats
path: root/tests
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
parent21ffa118b26672ec94ed5b7e1126e0133cb18048 (diff)
coding style fixes
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/articleenhancer/EnhancerTest.php5
-rw-r--r--tests/unit/service/FolderServiceTest.php2
2 files changed, 4 insertions, 3 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);
diff --git a/tests/unit/service/FolderServiceTest.php b/tests/unit/service/FolderServiceTest.php
index c6e17bdbd..275bc8992 100644
--- a/tests/unit/service/FolderServiceTest.php
+++ b/tests/unit/service/FolderServiceTest.php
@@ -54,7 +54,7 @@ class FolderServiceTest extends \PHPUnit_Framework_TestCase {
}
- function testFindAll(){
+ public function testFindAll(){
$userId = 'jack';
$return = 'hi';
$this->folderMapper->expects($this->once())