FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-src/ext/spl/tests/SplFileInfo_getOwner_basic.phpt at master · EndlessCoding/php-src · GitHub
EndlessCoding
/
php-src
Public
forked from
php/php-src
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
php-src
/
ext
/
spl
/
tests
/
SplFileInfo_getOwner_basic.phpt
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (26 loc) · 663 Bytes
Breadcrumbs
php-src
/
ext
/
spl
/
tests
/
SplFileInfo_getOwner_basic.phpt
Copy path
File metadata and controls
26 lines (26 loc) · 663 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
24
25
26
--TEST--
SPL: SplFileInfo test getOwner
--CREDITS--
Cesare D'Amico <cesare.damico@gruppovolta.it>
Andrea Giorgini <agiorg@gmail.com>
Filippo De Santis <fd@ideato.it>
Daniel Londero <daniel.londero@gmail.com>
Francesco Trucchia <ft@ideato.it>
Jacopo Romei <jacopo@sviluppoagile.it>
#Test Fest Cesena (Italy) on 2009-06-20
--FILE--
<?php
$
filename
=
__DIR__
.
"
/SplFileInfo_getOwner_basic
"
;
touch
(
$
filename
);
$
fileInfo
=
new
SplFileInfo
(
$
filename
);
$
expected
=
fileowner
(
$
filename
);
$
actual
=
$
fileInfo
->
getOwner
();
var_dump
(
$
expected
==
$
actual
);
?>
--CLEAN--
<?php
$
filename
=
__DIR__
.
"
/SplFileInfo_getOwner_basic
"
;
unlink
(
$
filename
);
?>
--EXPECTF--
bool(true)
Back
|
FazBrowse Home
|
New Git URL