FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-src/tests/classes/autoload_002.phpt at master · php/php-src · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
php
/
php-src
Public
Notifications
You must be signed in to change notification settings
Fork
8.1k
Star
40.3k
Code
Issues
960
Pull requests
1.1k
Actions
Security and quality
52
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
php-src
/
tests
/
classes
/
autoload_002.phpt
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (20 loc) · 461 Bytes
Breadcrumbs
php-src
/
tests
/
classes
/
autoload_002.phpt
Copy path
File metadata and controls
23 lines (20 loc) · 461 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
ZE2 Autoload and get_class_methods
--SKIPIF--
<?php
if
(
class_exists
(
'
autoload_root
'
,
false
))
die
(
'
skip Autoload test classes exist already
'
);
?>
--FILE--
<?php
spl_autoload_register
(
function
(
$
class_name
) {
require_once
(
__DIR__
.
'
/
'
.
$
class_name
.
'
.inc
'
);
echo
'
autoload(
'
.
$
class_name
.
"
)
\n"
;
});
var_dump
(
get_class_methods
(
'
autoload_root
'
));
?>
--EXPECT--
autoload(autoload_root)
array(1) {
[0]=>
string(12) "testFunction"
}
Back
|
FazBrowse Home
|
New Git URL