1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/spl/tests/class_uses_basic.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

32 lines
532 B
PHP

--TEST--
SPL: Test class_implements() function : basic
--FILE--
<?php
/* Prototype : array class_uses(mixed what [, bool autoload ])
* Description: Return all traits used by a class
* Source code: ext/spl/php_spl.c
* Alias to functions:
*/
echo "*** Testing class_uses() : basic ***\n";
trait foo { }
class bar { use foo; }
var_dump(class_uses(new bar));
var_dump(class_uses('bar'));
?>
--EXPECT--
*** Testing class_uses() : basic ***
array(1) {
["foo"]=>
string(3) "foo"
}
array(1) {
["foo"]=>
string(3) "foo"
}