From 4a6047fdd4d36c5bb254f6befbdcf3c32b6d2178 Mon Sep 17 00:00:00 2001 From: Guido Contreras Woda Date: Wed, 17 Dec 2014 15:06:18 -0300 Subject: [PATCH] Fixed mapper tests that weren't updated after a rename method refactor --- src/Configuration/DriverMapper.php | 7 +++++-- tests/Configuration/SqlMapperTest.php | 3 +++ tests/Configuration/SqliteMapperTest.php | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Configuration/DriverMapper.php b/src/Configuration/DriverMapper.php index 9bc54fd..9faa586 100644 --- a/src/Configuration/DriverMapper.php +++ b/src/Configuration/DriverMapper.php @@ -31,9 +31,12 @@ public function registerMapper(Mapper $mapper) */ public function map($configuration) { - foreach ($this->mappers as $mapper) - if ($mapper->isAppropriateFor($configuration)) + foreach ($this->mappers as $mapper) { + /** @type Mapper $mapper */ + if ($mapper->isAppropriateFor($configuration)) { return $mapper->map($configuration); + } + } throw new Exception("Driver {$configuration['driver']} unsupported by package at this time."); } diff --git a/tests/Configuration/SqlMapperTest.php b/tests/Configuration/SqlMapperTest.php index 2f37ebd..e76c2b7 100644 --- a/tests/Configuration/SqlMapperTest.php +++ b/tests/Configuration/SqlMapperTest.php @@ -5,6 +5,9 @@ class SqlMapperTest extends \PHPUnit_Framework_TestCase { + /** + * @type SqlMapper + */ private $sqlMapper; public function setUp() diff --git a/tests/Configuration/SqliteMapperTest.php b/tests/Configuration/SqliteMapperTest.php index 49b4daa..8c1208c 100644 --- a/tests/Configuration/SqliteMapperTest.php +++ b/tests/Configuration/SqliteMapperTest.php @@ -7,6 +7,9 @@ class SqliteMapperTest extends \PHPUnit_Framework_TestCase { + /** + * @type SqliteMapper + */ private $sqlMapper; public function setUp()