Skip to content

Commit

Permalink
Fix tests for serialization type
Browse files Browse the repository at this point in the history
  • Loading branch information
curry684 committed Apr 23, 2018
1 parent ed4c925 commit 1664323
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tests/DependencyInjection/SncRedisExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,7 @@ public function testLoadSerializationType()
$options = $container->getDefinition('snc_redis.client.default_options')->getArgument(0);
$serializationType = $extension->loadSerializationType($options['serialization']);
$this->assertTrue(is_integer($serializationType));

$defaultType = defined('Redis::SERIALIZER_IGBINARY') ? 2 : 1;

$this->assertEquals($defaultType, $serializationType);
$this->assertEquals(\Redis::SERIALIZER_NONE, $serializationType);
}

/**
Expand Down

0 comments on commit 1664323

Please sign in to comment.