mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 00:52:18 +01:00
Added test for issue #25
This commit is contained in:
@@ -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
18
tests/version.phpt
Normal 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
|
||||
Reference in New Issue
Block a user