php-src/Zend/tests/magic_methods/class_toString_concat_with_itself.phpt
DanielEScherzer a50f82bebf
Zend/tests: organize some tests with sub directories (6) (#17807)
Move more tests into existing directories

Work towards GH-15631
2025-02-15 14:55:07 +00:00

16 lines
227 B
PHP

--TEST--
Test concatenating a class instance that has __toString with itself
--FILE--
<?php
class Tmp {
public function __toString() {
return "abc";
}
}
$tmp = new Tmp;
$tmp .= $tmp;
echo $tmp . "\n";
?>
--EXPECT--
abcabc