Skip to content

Commit 73228bd

Browse files
SjonHortensiussodabrew
authored andcommitted
Add testcase for get-method overload (php-memcached-dev#210)
1 parent 2af9b61 commit 73228bd

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ Tests
166166
<file role='test' name='default_behavior.phpt'/>
167167
<file role='test' name='reset_keyprefix.phpt'/>
168168
<file role='test' name='session_lock-php71.phpt'/>
169+
<file role='test' name='overload_get.phpt'/>
169170
</dir>
170171
</dir>
171172
</contents>

tests/overload_get.phpt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
Test overloading get-method
3+
--SKIPIF--
4+
<?php if (!extension_loaded("memcached")) print "skip"; ?>
5+
--FILE--
6+
<?php
7+
class test_overload_get extends Memcached
8+
{
9+
public function get($key, $cache_cb = null, &$cas_token = null)
10+
{
11+
return parent::get($key, $cache_cb, $cas_token);
12+
}
13+
}
14+
echo "GOT HERE";
15+
--EXPECTF--
16+
GOT HERE

0 commit comments

Comments
 (0)