Skip to content

Commit

Permalink
Add exclusion groups for specific test with Redis 4
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Mar 15, 2019
1 parent 6decbbe commit d5905d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ matrix:
- php: 7.1
env: SYMFONY_VERSION="4.1.*"
- php: 7.2
env: EXCLUDE_GROUPS=redis4
- php: 7.2
env: SYMFONY_VERSION="4.0.*"
env: SYMFONY_VERSION="4.0.*" EXCLUDE_GROUPS=redis4
- php: 7.2
env: SYMFONY_VERSION="4.1.*"
env: SYMFONY_VERSION="4.1.*" EXCLUDE_GROUPS=redis4
- php: 7.2
env: SYMFONY_VERSION="4.2.*" SYMFONY_DEPRECATIONS_HELPER="weak" STABILITY="dev"
env: SYMFONY_VERSION="4.2.*" SYMFONY_DEPRECATIONS_HELPER="weak" STABILITY="dev" EXCLUDE_GROUPS=redis4
- php: 7.3
env: EXCLUDE_GROUPS=redis4
- php: nightly
allow_failures:
- php: hhvm
Expand Down Expand Up @@ -57,3 +59,5 @@ before_install:
install: composer update

before_script: mkdir Snc && ln -s ../ Snc/RedisBundle

script: if [ "$EXCLUDE_GROUPS" != "" ]; then bin/phpunit --filter=${EXCLUDE_GROUPS}; else bin/phpunit; fi;
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

0 comments on commit d5905d1

Please sign in to comment.