diff --git a/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt b/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt index 58387cccef2..3573d85852f 100644 --- a/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt +++ b/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt @@ -8,23 +8,19 @@ Daniel Londero Francesco Trucchia Jacopo Romei #Test Fest Cesena (Italy) on 2009-06-20 ---SKIPIF-- - --FILE-- getGroup() == $result); - +$dirname = basename(__FILE__, '.phpt'); +mkdir($dirname); +$dir = new DirectoryIterator($dirname); +$expected = filegroup($dirname); +$actual = $dir->getGroup(); +var_dump($expected == $actual); ?> --CLEAN-- --EXPECTF-- bool(true) diff --git a/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt b/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt index e342dcdb6fa..f02cb6e04e4 100644 --- a/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt +++ b/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt @@ -1,29 +1,26 @@ ---TEST-- -SPL: Spl Directory Iterator test getOwner ---CREDITS-- +--TEST-- +SPL: DirectoryIterator test getOwner +--CREDITS-- Cesare D'Amico Andrea Giorgini Filippo De Santis Daniel Londero Francesco Trucchia Jacopo Romei -#Test Fest Cesena (Italy) on 2009-06-20 ---SKIPIF-- - ---FILE-- -getOwner() == $result); - +#Test Fest Cesena (Italy) on 2009-06-20 +--FILE-- +getOwner(); +var_dump($expected == $actual); ?> --CLEAN-- ---EXPECTF-- +$dirname = basename(__FILE__, '.phpt'); +rmdir($dirname); +?> +--EXPECTF-- bool(true) diff --git a/ext/spl/tests/SplFileInfo_getGroup_basic.phpt b/ext/spl/tests/SplFileInfo_getGroup_basic.phpt index 7b0528d7d17..c5808c57d9e 100644 --- a/ext/spl/tests/SplFileInfo_getGroup_basic.phpt +++ b/ext/spl/tests/SplFileInfo_getGroup_basic.phpt @@ -1,30 +1,26 @@ ---TEST-- -SPL: Spl File Info test getGroup ---CREDITS-- +--TEST-- +SPL: SplFileInfo test getGroup +--CREDITS-- Cesare D'Amico Andrea Giorgini Filippo De Santis Daniel Londero Francesco Trucchia Jacopo Romei -#Test Fest Cesena (Italy) on 2009-06-20 ---SKIPIF-- - ---FILE-- -getGroup() == $result); - +#Test Fest Cesena (Italy) on 2009-06-20 +--FILE-- +getGroup(); +var_dump($expected == $actual); ?> --CLEAN-- ---EXPECTF-- +$filename = basename(__FILE__, 'phpt').'tmp'; +unlink($filename); +?> +--EXPECTF-- bool(true) diff --git a/ext/spl/tests/SplFileInfo_getOwner_basic.phpt b/ext/spl/tests/SplFileInfo_getOwner_basic.phpt index 50f79430c9e..790dcc69ba0 100644 --- a/ext/spl/tests/SplFileInfo_getOwner_basic.phpt +++ b/ext/spl/tests/SplFileInfo_getOwner_basic.phpt @@ -1,30 +1,26 @@ ---TEST-- -SPL: Spl File Info test getOwner ---CREDITS-- +--TEST-- +SPL: SplFileInfo test getOwner +--CREDITS-- Cesare D'Amico Andrea Giorgini Filippo De Santis Daniel Londero Francesco Trucchia Jacopo Romei -#Test Fest Cesena (Italy) on 2009-06-20 ---SKIPIF-- - ---FILE-- -getOwner() == $result); - +#Test Fest Cesena (Italy) on 2009-06-20 +--FILE-- +getOwner(); +var_dump($expected == $actual); ?> --CLEAN-- ---EXPECTF-- +$filename = basename(__FILE__, 'phpt').'tmp'; +unlink($filename); +?> +--EXPECTF-- bool(true)