php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
test.stub.php File Reference

Go to the source code of this file.

Data Structures

interface  _ZendTestInterface
 
class  _ZendTestClass
 
class  _ZendTestMagicCall
 
class  _ZendTestMagicCallForward
 
class  _ZendTestChildClass
 
class  ZendTestGenStubFlagCompatibilityTest
 
class  ZendAttributeTest
 
class  ZendTestAttribute
 
class  ZendTestAttributeWithArguments
 
class  ZendTestRepeatableAttribute
 
class  ZendTestParameterAttribute
 
class  ZendTestPropertyAttribute
 
class  ZendTestClassWithMethodWithParameterAttribute
 
class  ZendTestChildClassWithMethodWithParameterAttribute
 
class  ZendTestClassWithPropertyAttribute
 
class  ZendTestForbidDynamicCall
 
class  ZendTestNS\Foo
 
class  ZendTestNS\UnlikelyCompileError
 
class  ZendTestNS\NotUnlikelyCompileError
 
class  ZendTestNS2\Foo
 
class  ZendTestNS2\ZendSubNS\Foo
 

Namespaces

namespace  ZendTestNS
 
namespace  ZendTestNS2
 
namespace  ZendTestNS2\ZendSubNS
 

Enumerations

enum  ZendTestUnitEnum { Bar }
 
enum  ZendTestStringEnum : string { FortyTwo = "42" }
 
enum  ZendTestIntEnum : int { Baz = -1 }
 

Functions

 testMethod ()
 
 zend_test_array_return ()
 
 zend_test_nullable_array_return ()
 
 zend_test_void_return ()
 
 zend_test_compile_string (string $source_string, string $filename, int $position)
 
 zend_test_deprecated (mixed $arg=null)
 
 zend_test_deprecated_attr ()
 
 zend_test_aliased ()
 
 zend_test_deprecated_aliased ()
 
 zend_create_unterminated_string (string $str)
 
 zend_terminate_string (string &$str)
 
 zend_leak_variable (mixed $variable)
 
 zend_leak_bytes (int $bytes=3)
 
 zend_string_or_object (object|string $param)
 
 zend_string_or_object_or_null (object|string|null $param)
 
 zend_string_or_stdclass ($param)
 
 zend_string_or_stdclass_or_null ($param)
 
 zend_number_or_string (string|int|float $param)
 
 zend_number_or_string_or_null (string|int|float|null $param)
 
 zend_iterable (iterable $arg1, ?iterable $arg2=null)
 
 zend_weakmap_attach (object $object, mixed $value)
 
 zend_weakmap_remove (object $object)
 
 zend_weakmap_dump ()
 
 zend_get_unit_enum ()
 
 zend_test_parameter_with_attribute (#[ZendTestParameterAttribute("value1")] string $parameter)
 
 zend_test_attribute_with_named_argument ()
 
 zend_get_current_func_name ()
 
 zend_call_method (object|string $obj_or_class, string $method, mixed $arg1=UNKNOWN, mixed $arg2=UNKNOWN)
 
 zend_object_init_with_constructor (string $class, mixed ... $args)
 
 zend_test_zend_ini_parse_quantity (string $str)
 
 zend_test_zend_ini_parse_uquantity (string $str)
 
 zend_test_zend_ini_str ()
 
 zend_test_zend_call_stack_get ()
 
 zend_test_zend_call_stack_use_all ()
 
 zend_test_is_string_marked_as_valid_utf8 (string $string)
 
 zend_get_map_ptr_last ()
 
 zend_test_crash (?string $message=null)
 
 zend_test_fill_packed_array (array &$array)
 
 zend_test_create_throwing_resource ()
 
 get_open_basedir ()
 
 zend_test_override_libxml_global_state ()
 
 zend_test_is_pcre_bundled ()
 
 zend_test_set_fmode (bool $binary)
 
 zend_test_cast_fread ($stream)
 
 zend_test_is_zend_ptr (int $addr)
 
 zend_test_log_err_debug (string $str)
 
 ZendTestNS2::namespaced_func ()
 
 ZendTestNS2::namespaced_deprecated_func ()
 
 ZendTestNS2::namespaced_aliased_func ()
 
 ZendTestNS2::namespaced_deprecated_aliased_func ()
 
 ZendTestNS2\ZendSubNS::namespaced_func ()
 
 ZendTestNS2\ZendSubNS::namespaced_deprecated_func ()
 
 ZendTestNS2\ZendSubNS::namespaced_aliased_func ()
 
 ZendTestNS2\ZendSubNS::namespaced_deprecated_aliased_func ()
 

Variables

const ZEND_TEST_DEPRECATED = 42
 
const ZEND_CONSTANT_A = "global"
 
trait _ZendTestTrait
 
Traversable Countable $classUnionProp
 
const ZendTestNS2::ZEND_CONSTANT_A = "namespaced"
 
const ZendTestNS2\ZendSubNS::ZEND_CONSTANT_A = \ZendTestNS2\ZEND_CONSTANT_A
 

Enumeration Type Documentation

◆ ZendTestIntEnum

enum ZendTestIntEnum : int
Enumerator
Baz 

Definition at line 198 of file test.stub.php.

◆ ZendTestStringEnum

enum ZendTestStringEnum : string
Enumerator
FortyTwo 

Definition at line 191 of file test.stub.php.

◆ ZendTestUnitEnum

Enumerator
Bar 

Definition at line 186 of file test.stub.php.

Function Documentation

◆ get_open_basedir()

get_open_basedir ( )

Definition at line 301 of file test.stub.php.

◆ testMethod()

testMethod ( )

Definition at line 115 of file test.stub.php.

◆ zend_call_method()

zend_call_method ( object|string $obj_or_class,
string $method,
mixed $arg1 = UNKNOWN,
mixed $arg2 = UNKNOWN )

Definition at line 276 of file test.stub.php.

◆ zend_create_unterminated_string()

zend_create_unterminated_string ( string $str)

Definition at line 236 of file test.stub.php.

◆ zend_get_current_func_name()

zend_get_current_func_name ( )

Definition at line 274 of file test.stub.php.

◆ zend_get_map_ptr_last()

zend_get_map_ptr_last ( )

Definition at line 292 of file test.stub.php.

◆ zend_get_unit_enum()

zend_get_unit_enum ( )

Definition at line 264 of file test.stub.php.

◆ zend_iterable()

zend_iterable ( iterable $arg1,
?iterable $arg2 = null )

Definition at line 258 of file test.stub.php.

◆ zend_leak_bytes()

zend_leak_bytes ( int $bytes = 3)

Definition at line 242 of file test.stub.php.

◆ zend_leak_variable()

zend_leak_variable ( mixed $variable)

Definition at line 240 of file test.stub.php.

◆ zend_number_or_string()

zend_number_or_string ( string|int|float $param)

Definition at line 254 of file test.stub.php.

◆ zend_number_or_string_or_null()

zend_number_or_string_or_null ( string|int|float|null $param)

Definition at line 256 of file test.stub.php.

◆ zend_object_init_with_constructor()

zend_object_init_with_constructor ( string $class,
mixed ... $args )

Definition at line 278 of file test.stub.php.

◆ zend_string_or_object()

zend_string_or_object ( object|string $param)

Definition at line 244 of file test.stub.php.

◆ zend_string_or_object_or_null()

zend_string_or_object_or_null ( object|string|null $param)

Definition at line 246 of file test.stub.php.

◆ zend_string_or_stdclass()

zend_string_or_stdclass ( $param)
Parameters
stdClass | string$param

Definition at line 249 of file test.stub.php.

◆ zend_string_or_stdclass_or_null()

zend_string_or_stdclass_or_null ( $param)
Parameters
stdClass | string | null$param

Definition at line 252 of file test.stub.php.

◆ zend_terminate_string()

zend_terminate_string ( string & $str)

Definition at line 238 of file test.stub.php.

◆ zend_test_aliased()

zend_test_aliased ( )

@alias zend_test_void_return

Definition at line 228 of file test.stub.php.

◆ zend_test_array_return()

zend_test_array_return ( )

Definition at line 204 of file test.stub.php.

◆ zend_test_attribute_with_named_argument()

zend_test_attribute_with_named_argument ( )

Definition at line 272 of file test.stub.php.

◆ zend_test_cast_fread()

zend_test_cast_fread ( $stream)
Parameters
resource$stream

Definition at line 314 of file test.stub.php.

◆ zend_test_compile_string()

zend_test_compile_string ( string $source_string,
string $filename,
int $position )

Definition at line 219 of file test.stub.php.

◆ zend_test_crash()

zend_test_crash ( ?string $message = null)

Definition at line 294 of file test.stub.php.

◆ zend_test_create_throwing_resource()

zend_test_create_throwing_resource ( )
Returns
resource

Definition at line 299 of file test.stub.php.

◆ zend_test_deprecated()

zend_test_deprecated ( mixed $arg = null)
Deprecated

Definition at line 222 of file test.stub.php.

◆ zend_test_deprecated_aliased()

zend_test_deprecated_aliased ( )
Deprecated
@alias zend_test_void_return

Definition at line 234 of file test.stub.php.

◆ zend_test_deprecated_attr()

zend_test_deprecated_attr ( )

Definition at line 225 of file test.stub.php.

◆ zend_test_fill_packed_array()

zend_test_fill_packed_array ( array & $array)

Definition at line 296 of file test.stub.php.

◆ zend_test_is_pcre_bundled()

zend_test_is_pcre_bundled ( )

Definition at line 307 of file test.stub.php.

◆ zend_test_is_string_marked_as_valid_utf8()

zend_test_is_string_marked_as_valid_utf8 ( string $string)

Definition at line 290 of file test.stub.php.

◆ zend_test_is_zend_ptr()

zend_test_is_zend_ptr ( int $addr)

Definition at line 316 of file test.stub.php.

◆ zend_test_log_err_debug()

zend_test_log_err_debug ( string $str)

Definition at line 318 of file test.stub.php.

◆ zend_test_nullable_array_return()

zend_test_nullable_array_return ( )

@genstubs-expose-comment-block "Lorem ipsum"

See also
https://www.php.net
Since
8.3

Definition at line 215 of file test.stub.php.

◆ zend_test_override_libxml_global_state()

zend_test_override_libxml_global_state ( )

Definition at line 304 of file test.stub.php.

◆ zend_test_parameter_with_attribute()

zend_test_parameter_with_attribute ( # string $parameter[ZendTestParameterAttribute("value1")])

Definition at line 266 of file test.stub.php.

◆ zend_test_set_fmode()

zend_test_set_fmode ( bool $binary)

Definition at line 310 of file test.stub.php.

◆ zend_test_void_return()

zend_test_void_return ( )

Definition at line 217 of file test.stub.php.

◆ zend_test_zend_call_stack_get()

zend_test_zend_call_stack_get ( )

Definition at line 286 of file test.stub.php.

◆ zend_test_zend_call_stack_use_all()

zend_test_zend_call_stack_use_all ( )

Definition at line 287 of file test.stub.php.

◆ zend_test_zend_ini_parse_quantity()

zend_test_zend_ini_parse_quantity ( string $str)

Definition at line 280 of file test.stub.php.

◆ zend_test_zend_ini_parse_uquantity()

zend_test_zend_ini_parse_uquantity ( string $str)

Definition at line 281 of file test.stub.php.

◆ zend_test_zend_ini_str()

zend_test_zend_ini_str ( )

Definition at line 283 of file test.stub.php.

◆ zend_weakmap_attach()

zend_weakmap_attach ( object $object,
mixed $value )

Definition at line 260 of file test.stub.php.

◆ zend_weakmap_dump()

zend_weakmap_dump ( )

Definition at line 262 of file test.stub.php.

◆ zend_weakmap_remove()

zend_weakmap_remove ( object $object)

Definition at line 261 of file test.stub.php.

Variable Documentation

◆ $classUnionProp

Traversable Countable $classUnionProp

Definition at line 113 of file test.stub.php.

◆ _ZendTestTrait

trait _ZendTestTrait
Initial value:
{
public $testProp

Definition at line 110 of file test.stub.php.

◆ ZEND_CONSTANT_A

const ZEND_CONSTANT_A = "global"

Definition at line 18 of file test.stub.php.

◆ ZEND_TEST_DEPRECATED

const ZEND_TEST_DEPRECATED = 42

Definition at line 15 of file test.stub.php.