Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rlerdorf authored and m6w6 committed Sep 26, 2024
1 parent 0987380 commit 198e9b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/cas_invalid_key.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ Memcached::cas() with strange key
--FILE--
<?php
include dirname(__FILE__) . '/config.inc';
$m = memc_get_instance ();
$m = memc_get_instance (array (
Memcached::OPT_BINARY_PROTOCOL => false,
Memcached::OPT_VERIFY_KEY => true
));

error_reporting(0);
var_dump($m->cas(0, '', true, 10));
Expand Down
5 changes: 4 additions & 1 deletion tests/delete_bykey.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ Memcached::deleteByKey()
--FILE--
<?php
include dirname(__FILE__) . '/config.inc';
$m = memc_get_instance ();
$m = memc_get_instance (array (
Memcached::OPT_BINARY_PROTOCOL => false,
Memcached::OPT_VERIFY_KEY => true
));

$m->setByKey('keffe', 'eisaleeoo', "foo");
var_dump($m->getByKey('keffe', 'eisaleeoo'));
Expand Down

0 comments on commit 198e9b3

Please sign in to comment.