[xdebug-dev] svn: /xdebug/ branches/xdebug_2_1/tests/trace_with_magic_methods.phpt trunk/tests/trace_with_magic_methods.phpt

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Fri, 07 Jan 2011 23:52:13 +0000

derick Fri, 07 Jan 2011 23:52:13 +0000

Revision: http://svn.xdebug.org/cgi-bin/viewvc.cgi?view=rev&revision=3386&root=xdebug

Log:
- Fixed test case, test() could also be the ctor name.

Changed paths:
    U xdebug/branches/xdebug_2_1/tests/trace_with_magic_methods.phpt
    U xdebug/trunk/tests/trace_with_magic_methods.phpt

Modified: xdebug/branches/xdebug_2_1/tests/trace_with_magic_methods.phpt
===================================================================
--- xdebug/branches/xdebug_2_1/tests/trace_with_magic_methods.phpt 2011-01-07 23:52:12 UTC (rev 3385)
+++ xdebug/branches/xdebug_2_1/tests/trace_with_magic_methods.phpt 2011-01-07 23:52:13 UTC (rev 3386)
@@ -31,7 +31,7 @@
         public function __call($func, $args) {
                 return $this->$func($args);
         }
- public function test($args) {
+ public function testFunc($args) {
                 count($args);
         }
 }
@@ -41,7 +41,7 @@
 $foo = $test->test;
 isset($test->test);
 unset($test->test);
-$test->test('test1', 'test2');
+$test->testFunc('test1', 'test2');

 xdebug_stop_trace();
 echo file_get_contents($tf);
@@ -54,7 +54,7 @@
 %w%f %w%d -> Test->__get(string(4)) %strace_with_magic_methods.php:29
 %w%f %w%d -> Test->__isset(string(4)) %strace_with_magic_methods.php:30
 %w%f %w%d -> Test->__unset(string(4)) %strace_with_magic_methods.php:31
-%w%f %w%d -> Test->test(string(5), string(5)) %strace_with_magic_methods.php:32
+%w%f %w%d -> Test->testFunc(string(5), string(5)) %strace_with_magic_methods.php:32
 %w%f %w%d -> count(string(5)) %strace_with_magic_methods.php:23
 %w%f %w%d -> xdebug_stop_trace() %strace_with_magic_methods.php:34
 %w%f %w%d

Modified: xdebug/trunk/tests/trace_with_magic_methods.phpt
===================================================================
--- xdebug/trunk/tests/trace_with_magic_methods.phpt 2011-01-07 23:52:12 UTC (rev 3385)
+++ xdebug/trunk/tests/trace_with_magic_methods.phpt 2011-01-07 23:52:13 UTC (rev 3386)
@@ -31,7 +31,7 @@
         public function __call($func, $args) {
                 return $this->$func($args);
         }
- public function test($args) {
+ public function testFunc($args) {
                 count($args);
         }
 }
@@ -41,7 +41,7 @@
 $foo = $test->test;
 isset($test->test);
 unset($test->test);
-$test->test('test1', 'test2');
+$test->testFunc('test1', 'test2');

 xdebug_stop_trace();
 echo file_get_contents($tf);
@@ -54,7 +54,7 @@
 %w%f %w%d -> Test->__get(string(4)) %strace_with_magic_methods.php:29
 %w%f %w%d -> Test->__isset(string(4)) %strace_with_magic_methods.php:30
 %w%f %w%d -> Test->__unset(string(4)) %strace_with_magic_methods.php:31
-%w%f %w%d -> Test->test(string(5), string(5)) %strace_with_magic_methods.php:32
+%w%f %w%d -> Test->testFunc(string(5), string(5)) %strace_with_magic_methods.php:32
 %w%f %w%d -> count(string(5)) %strace_with_magic_methods.php:23
 %w%f %w%d -> xdebug_stop_trace() %strace_with_magic_methods.php:34
 %w%f %w%d
Received on Fri Jan 07 2011 - 23:52:13 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST