Skip to content

Commit

Permalink
Use semver for PHP version at composer.json, added support for PHP …
Browse files Browse the repository at this point in the history
…7.3 at Travis
  • Loading branch information
phansys committed Mar 15, 2019
1 parent 1a0c122 commit d90d52c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ matrix:
env: SYMFONY_VERSION="4.1.*"
- php: 7.2
env: SYMFONY_VERSION="4.2.*" SYMFONY_DEPRECATIONS_HELPER="weak" STABILITY="dev"
- php: 7.3
- php: nightly
allow_failures:
- php: hhvm
Expand All @@ -47,6 +48,7 @@ env:
before_install:
- phpenv config-rm xdebug.ini || true
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;
- php -i | grep -i --color=never "Redis Version"
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv rehash; fi;
- composer self-update
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

namespace Snc\RedisBundle\Factory;
namespace Snc\RedisBundle\Tests\Factory;

use PHPUnit\Framework\TestCase;
use Snc\RedisBundle\Factory\PhpredisClientFactory;
use Snc\RedisBundle\Logger\RedisLogger;

class PhpredisClientFactoryTest extends TestCase
Expand Down Expand Up @@ -32,6 +33,9 @@ public function testCreateMinimalConfig()
$this->assertSame(0, $client->getOption(\Redis::OPT_SERIALIZER));
}

/**
* @group redis4
*/
public function testCreateFullConfig()
{
$logger = $this->getMockBuilder('Snc\RedisBundle\Logger\RedisLogger')->getMock();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"homepage": "https://github.com/snc/SncRedisBundle/contributors"
}],
"require": {
"php": ">=5.3.3",
"php": "^5.3.3 || ^7.0",
"symfony/framework-bundle": "^2.7 || ^3.0 || ^4.0",
"symfony/yaml": "^2.7 || ^3.0 || ^4.0"
},
Expand Down

0 comments on commit d90d52c

Please sign in to comment.