mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
27 lines
663 B
PHP
27 lines
663 B
PHP
--TEST--
|
|
SPL: SplFileInfo test getGroup
|
|
--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_getGroup_basic";
|
|
touch($filename);
|
|
$fileInfo = new SplFileInfo($filename);
|
|
$expected = filegroup($filename);
|
|
$actual = $fileInfo->getGroup();
|
|
var_dump($expected == $actual);
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
$filename = __DIR__ . "/SplFileInfo_getGroup_basic";
|
|
unlink($filename);
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|