Skip to content

Commit

Permalink
Fix test bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysviridenko authored and sergeyklay committed Mar 6, 2018
1 parent 0456d5a commit 3549f1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ install:
- composer install -q -n --no-ansi --no-progress --dev --prefer-dist --no-suggest #--ignore-platform-reqs
# We'll do this in future for the all 7.x series
- |
if [ "${PHP_MAJOR}.${PHP_MINOR}" = "7.2" ] || [ "${PHP_MAJOR}.${PHP_MINOR}" = "7.3" ]; then
if [ "${PHP_MAJOR}.${PHP_MINOR}" = "7.3" ]; then
composer remove -q -n --no-ansi --no-progress --dev doctrine/instantiator
composer remove -q -n --no-ansi --no-progress --dev phpdocumentor/reflection-docblock
composer remove -q -n --no-ansi --no-progress --dev phpunit/phpunit
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/Acl/Adapter/MemoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Phalcon\Test\Acl\TestResourceAware;
use Phalcon\Test\Acl\TestRoleAware;
use Phalcon\Test\Acl\TestRoleResourceAware;
use PHPUnit_Framework_Exception;
use Phalcon\Test\Module\UnitTest;
use Phalcon\Acl\Adapter\Memory;

Expand Down Expand Up @@ -647,8 +646,7 @@ function () {
},
[
'throws' => [
// We may need change this for all 7.x series
PHP_VERSION_ID >= 70200 ? 'PHPUnit\Framework\Exception' : 'PHPUnit_Framework_Exception',
\PHPUnit_Framework_Exception::class,
"You didn't provide any parameters when check Guests can update Post. We will use default action when no arguments."
]
]
Expand Down

0 comments on commit 3549f1f

Please sign in to comment.