Added test for issue #25

This commit is contained in:
Mikko
2013-11-06 12:25:03 +08:00
parent 9e45d76994
commit 767b3cd0c2
2 changed files with 19 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
<file role='src' name='fastlz/fastlz.h'/>
<dir name="tests">
<file role='test' name='001.phpt'/>
<file role='test' name='version.phpt'/>
<file role='test' name='bug_16084.phpt'/>
<file role='test' name='bug_16959.phpt'/>
<file role='test' name='bug_17137.phpt'/>

18
tests/version.phpt Normal file
View File

@@ -0,0 +1,18 @@
--TEST--
Get version
--SKIPIF--
<?php if (!extension_loaded("memcached")) print "skip"; ?>
--FILE--
<?php
$m = new Memcached();
$m->addServer('127.0.0.1', 11211);
var_dump ($m->getVersion ());
echo "OK" . PHP_EOL;
?>
--EXPECTF--
array(1) {
["127.0.0.1:11211"]=>
string(6) "%d.%d.%d"
}
OK