diff --git a/tests/_support/Helper/CollectionTrait.php b/tests/_support/Helper/CollectionTrait.php index ae43da327..eaa0d39ad 100644 --- a/tests/_support/Helper/CollectionTrait.php +++ b/tests/_support/Helper/CollectionTrait.php @@ -1,5 +1,22 @@ | + +------------------------------------------------------------------------+ +*/ + namespace Helper; use Codeception\Actor; @@ -20,7 +37,7 @@ trait CollectionTrait protected function setupMongo(Actor $I) { if (!extension_loaded('mongodb')) { - $I->markTestSkipped('mongodb extension not loaded'); + throw new \PHPUnit_Framework_SkippedTestError('mongodb extension not loaded'); } Di::reset(); diff --git a/tests/unit/Mvc/Collection/ValidationCest.php b/tests/unit/Mvc/Collection/ValidationCest.php index 672ff8bd0..ede85a082 100644 --- a/tests/unit/Mvc/Collection/ValidationCest.php +++ b/tests/unit/Mvc/Collection/ValidationCest.php @@ -1,5 +1,22 @@ | + +------------------------------------------------------------------------+ +*/ + namespace Phalcon\Test\Mvc\Collection; use DateTime; @@ -13,7 +30,7 @@ * \Phalcon\Test\Mvc\Collection\ValidationCest * Tests for Phalcon\Mvc\MongoCollection component * - * @copyright (c) 2011-2017 Phalcon Team + * @copyright (c) 2011-present Phalcon Team * @link https://www.phalconphp.com * @author Wojciech Ślawski * @package Phalcon\Test\Mvc\Collection @@ -105,4 +122,4 @@ public function mongoUniqueness(UnitTester $I) $this->testExceptMultipleFieldMultipleExcept($I); $this->testConvertArrayReturnsArray($I); } -} \ No newline at end of file +}