summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/appframework/db/mappertestutility.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/lib/appframework/db/mappertestutility.php b/tests/lib/appframework/db/mappertestutility.php
index 2a2bb1ab500..0053b2c682d 100644
--- a/tests/lib/appframework/db/mappertestutility.php
+++ b/tests/lib/appframework/db/mappertestutility.php
@@ -88,15 +88,14 @@ abstract class MapperTestUtility extends \Test\TestCase {
}
return $result;
- }
+ }
));
if ($expectClose) {
- $closing = $this->once();
- } else {
- $closing = $this->any();
- }
- $this->pdoResult->expects($closing)
- ->method('closeCursor');
+ $closing = $this->once();
+ } else {
+ $closing = $this->any();
+ }
+ $this->pdoResult->expects($closing)->method('closeCursor');
$index = 1;
foreach($arguments as $argument) {