Home
last modified time | relevance | path

Searched refs:method (Results 51 – 75 of 702) sorted by relevance

12345678910>>...29

/PHP-5.5/Zend/tests/
H A Dindirect_call_array_002.phpt2 Indirect method call by array - Invalid method name
11 Fatal error: Call to undefined method stdClass::b() in %s on line %d
H A Dobjects_027.phpt2 Testing 'new static;' calling parent method
30 Strict Standards: Non-static method foo::test() should not be called statically in %s on line %d
32 Strict Standards: Non-static method bar::show() should not be called statically in %s on line %d
38 Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method fo…
40 Strict Standards: Non-static method bar::show() should not be called statically in %s on line %d
H A Dns_010.phpt14 echo "method ok\n";
33 method ok
34 method ok
35 method ok
H A Dbug30451.phpt10 protected static function method() {
20 var_dump(self::method());
21 var_dump(parent::method());
H A Dns_037.phpt14 echo "method ok\n";
33 method ok
34 method ok
35 method ok
/PHP-5.5/ext/reflection/tests/
H A DReflectionClass_hasMethod_basic.phpt11 //Check if C has public method publicFoo
14 //Check if C has protected method protectedFoo
17 //Check if C has private method privateFoo
20 //Check if C has static method staticFoo
23 //C should not have method bar
H A DReflectionMethod_getClosure_basic.phpt6 * Description: Returns a dynamically created closure for the method
37 $method = $staticclass->getMethod( 'foo' );
38 $closure = $method->getClosure();
41 $method = $class->getMethod( 'foo' );
43 $closure = $method->getClosure( $object );
H A DReflectionMethod_invokeArgs_error3.phpt50 echo "\nStatic method:\n";
57 echo "\nPrivate method:\n";
64 echo "\nAbstract method:\n";
88 string(72) "Given object is not an instance of the class this method was declared in"
95 Static method:
111 Private method:
112 string(86) "Trying to invoke private method TestClass::privateMethod() from scope ReflectionMethod"
114 Abstract method:
115 string(53) "Trying to invoke abstract method AbstractClass::foo()"
H A DReflectionMethod_getClosureThis.phpt33 $method = $staticclass->getMethod( 'foo' );
34 $closure = $method->getClosure();
39 $method = $class->getMethod( 'foo' );
41 $closure = $method->getClosure( $object );
H A DReflectionMethod_setAccessible.phpt96 string(73) "Trying to invoke private method A::aPrivate() from scope ReflectionMethod"
97 string(73) "Trying to invoke private method A::aPrivate() from scope ReflectionMethod"
98 string(79) "Trying to invoke private method A::aPrivateStatic() from scope ReflectionMethod"
99 string(79) "Trying to invoke private method A::aPrivateStatic() from scope ReflectionMethod"
100 string(77) "Trying to invoke protected method A::aProtected() from scope ReflectionMethod"
101 string(77) "Trying to invoke protected method A::aProtected() from scope ReflectionMethod"
102 string(83) "Trying to invoke protected method A::aProtectedStatic() from scope ReflectionMethod"
103 string(83) "Trying to invoke protected method A::aProtectedStatic() from scope ReflectionMethod"
H A Dbug32981.phpt15 foreach ($class->getMethods() as $method)
17 var_dump($method->getName());
18 $arr_static_vars[] = $method->getStaticVariables();
H A DReflectionMethod_getStaticVariables_basic.phpt23 echo "Public method:\n";
27 echo "\nPrivate method:\n";
41 Public method:
51 Private method:
H A DReflectionMethod_getClosure_error.phpt6 * Description: Returns a dynamically created closure for the method
33 $method = $class->getMethod( 'foo' );
41 var_dump( $method->getClosure( $object, 'foobar' ) );
44 $closure = $method->getClosure();
48 var_dump( $method->getClosure( $fakeobj ) );
72 string(72) "Given object is not an instance of the class this method was declared in"
H A DReflectionClass_toString_002.phpt2 ReflectionClass::__toString() - verify 'inherits', 'overwrites' and 'prototype' parts of method rep…
47 Method [ <user> public method f ] {
71 Method [ <user, overwrites A, prototype A> public method f ] {
95 Method [ <user, inherits B, prototype A> public method f ] {
119 Method [ <user, overwrites B, prototype A> public method f ] {
/PHP-5.5/ext/standard/tests/array/
H A Darray_map_object2.phpt2 Test array_map() function : object functionality - with non-existent class and method
15 echo "*** Testing array_map() : with non-existent class and method ***\n";
31 echo "-- with existent class and non-existent method --\n";
37 *** Testing array_map() : with non-existent class and method ***
42 -- with existent class and non-existent method --
44 … parameter 1 to be a valid callback, class 'SimpleClass' does not have a method 'non-existent' in …
H A Darray_reduce_variation3.phpt20 echo "\n--- Static method callback ---\n";
23 echo "\n--- Instance method callback ---\n";
31 --- Static method callback ---
34 --- Instance method callback ---
H A Darray_intersect_uassoc_variation10.phpt15 // define some class with method
28 echo "\n-- Testing array_intersect_uassoc() function using class with static method as callback --\…
32 echo "\n-- Testing array_intersect_uassoc() function using class with regular method as callback --…
40 -- Testing array_intersect_uassoc() function using class with static method as callback --
50 -- Testing array_intersect_uassoc() function using class with regular method as callback --
/PHP-5.5/ext/spl/tests/
H A DRecursiveCallbackFilterIteratorTest.phpt32 'instance method' => function() { return array(new A, 'test'); },
33 'static method' => function() { return array('B', 'test'); },
34 'static method (2)' => function() { return 'B::test'; },
64 = instance method =
79 = static method =
94 = static method (2) =
/PHP-5.5/ext/xmlrpc/tests/
H A Dbug61097.phpt9 $method = 'abc';
10 xmlrpc_server_register_introspection_callback($server, $method);
11 xmlrpc_server_register_method($server, 'abc', $method);
H A Dbug51288.phpt7 $method = NULL;
9 var_dump(xmlrpc_decode_request($req, $method));
10 var_dump($method);
/PHP-5.5/ext/intl/tests/
H A Dbreakiter_factories_basic.phpt18 foreach ($m as $method) {
19 echo "===== $method =====\n";
20 $o1 = call_user_func(array('IntlBreakIterator', $method), 'ja');
22 $o2 = call_user_func(array('IntlBreakIterator', $method), NULL);
/PHP-5.5/ext/openssl/tests/
H A Dopenssl_encrypt_error.phpt8 $method = "AES-128-CBC";
15 var_dump(openssl_encrypt($object, $method, $password));
17 var_dump(openssl_encrypt($data, $method, $object));
18 var_dump(openssl_encrypt($arr, $method, $object));
20 var_dump(openssl_encrypt($data, $method, $arr));
/PHP-5.5/sapi/apache_hooks/
H A Dsapi_apache.c95 zval *method; in apache_php_module_hook() local
99 ALLOC_ZVAL(method); in apache_php_module_hook()
100 ZVAL_STRING(method, tmp +2, 1); in apache_php_module_hook()
102 … call_user_function_ex(EG(function_table), &class, method, ret, 0, NULL, 0, NULL TSRMLS_CC); in apache_php_module_hook()
104 zval_dtor(method); in apache_php_module_hook()
/PHP-5.5/ext/date/tests/
H A DDateTime_fix_createFromFormat.phpt20 echo "Format method: " . $orig->format("D., M. j, Y g:iA") . "\n";
21 echo "createFromFormat method: " . $fromFormat->format("D., M. j, Y g:iA") . "\n";
27 Format method: Thu., Nov. 29, 2012 5:00PM
28 createFromFormat method: Thu., Nov. 29, 2012 5:00PM
/PHP-5.5/Zend/tests/traits/bugs/
H A Dalias-semantics02.phpt3 method body of the original method.
4 It should also work incase the method is fully qualified.

Completed in 54 milliseconds

12345678910>>...29