-
Notifications
You must be signed in to change notification settings - Fork 326
moar tests passing #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moar tests passing #180
Changes from all commits
2af8314
20636b2
a335533
08cb8ff
16cca32
545e34b
3a8c8fd
aaed353
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
language: php | ||
php: | ||
- 5.5 | ||
#- 5.4 | ||
#- 5.3 | ||
- 7.0 | ||
|
||
env: | ||
- LIBMEMCACHED_VERSION=1.0.17 | ||
- LIBMEMCACHED_VERSION=1.0.16 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,7 @@ $m = clone $m; | |
|
||
echo "GOT HERE"; | ||
--EXPECTF-- | ||
Fatal error: Trying to clone an uncloneable object of class Memcached in %s on line %d | ||
Fatal error: Uncaught Error: Trying to clone an uncloneable object of class Memcached in %s:6 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just because errors as exceptions now ... is same ... |
||
Stack trace: | ||
#0 {main} | ||
thrown in %s on line 6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,11 @@ error_reporting(0); | |
var_dump($m->cas(0, '', true, 10)); | ||
echo $m->getResultMessage(), "\n"; | ||
|
||
var_dump($m->cas(0, ' �� jas kjjhask d ', true, 10)); | ||
var_dump($m->cas(0, ' �� jas kjjhask d ', true, 10)); # no spaces allowed | ||
echo $m->getResultMessage(), "\n"; | ||
|
||
--EXPECTF-- | ||
bool(false) | ||
A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE | ||
bool(false) | ||
%rCLIENT ERROR|NOT FOUND%r | ||
A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this appears to be right, strchr is ran on the key to check for spaces ... |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ var_dump($m->deleteByKey('keffe', '')); | |
echo $m->getResultMessage(), "\n"; | ||
var_dump($m->deleteByKey('', 'keffe')); | ||
echo $m->getResultMessage(), "\n"; | ||
var_dump($m->deleteByKey('keffe', '���as�� �a�sd�f asdf')); | ||
var_dump($m->deleteByKey('keffe', '���as�� �a�sd�f asdf')); # no spaces allowed | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know it seems like I just changed these to pass, but it really looks like this is the expected result. strchr is ran on the keys everywhere to check for spaces ... |
||
echo $m->getResultMessage(), "\n"; | ||
--EXPECTF-- | ||
string(3) "foo" | ||
|
@@ -37,4 +37,4 @@ A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE | |
bool(false) | ||
NOT FOUND | ||
bool(false) | ||
%rPROTOCOL ERROR|NOT FOUND|WRITE FAILURE|CLIENT ERROR%r | ||
A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ string(4) "asdf" | |
float(%d) | ||
SUCCESS | ||
bool(false) | ||
NULL | ||
float(0) | ||
NOT FOUND | ||
bool(false) | ||
NULL | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other serializers should probably be consistent with this