diff --git a/tests/lib/appframework/db/mappertestutility.php b/tests/lib/appframework/db/mappertestutility.php index 2a2bb1ab50..0053b2c682 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) {