Skip to content

Commit

Permalink
Update test data for custom prettifier tests, #17
Browse files Browse the repository at this point in the history
  • Loading branch information
hollodotme committed Aug 15, 2018
1 parent 51919d5 commit 746f975
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use hollodotme\Readis\Interfaces\ProvidesInfrastructure;
use PHPUnit\Framework\TestCase;
use Redis;
use function base64_encode;
use function count;

abstract class AbstractQueryHandlerTest extends TestCase
{
Expand Down Expand Up @@ -54,6 +56,8 @@ protected function setUp() : void
/** @noinspection PhpMethodParametersCountMismatchInspection */
/** @noinspection PhpParamsInspection */
$this->redis->rawCommand( 'PFADD', 'hyperLogLog', 'a', 'b', 'c', 'd', 'e', 'f' );

$this->redis->set( 'base64', 'base64:' . base64_encode( 'Test-Data' ) );
}

protected function tearDown() : void
Expand All @@ -66,6 +70,7 @@ protected function tearDown() : void
* @param string $serverKey
*
* @throws NoServersConfigured
* @throws \PHPUnit\Framework\MockObject\RuntimeException
* @return ProvidesInfrastructure
* @throws ServerConfigNotFound
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function keySearchProvider() : array
'database' => 0,
'searchPattern' => '*',
'limit' => null,
'expectedKeyCount' => 7,
'expectedKeyCount' => 8,
],
[
'serverKey' => '0',
Expand All @@ -66,7 +66,7 @@ public function keySearchProvider() : array
'database' => 0,
'searchPattern' => '*as*',
'limit' => null,
'expectedKeyCount' => 1,
'expectedKeyCount' => 2,
],
[
'serverKey' => '0',
Expand Down

0 comments on commit 746f975

Please sign in to comment.