Arquivos
hhvm/hphp/test/quick/debugger/printThis.php
T
Herman Venter 5a9d8751af Move the debugger command line test out of the C++ debugger test harness and use the standard harness.
Added a tweak to test/run to make it look for $test.in and, if there is one, to add <$test.in to the command line for running the test. Together with $file.opts and a config.hdf, this makes it possible to fire up a command line debugger for php, feed it with commands, obtain its output and check it against expected output.
2013-06-03 10:54:37 -07:00

16 linhas
182 B
PHP

<?php
class Foo {
function method() {
$other = $this;
}
}
$object = new Foo;
$object->prop = "Hello\n";
$object->method();
$object->prop2 = "\tThere";
$object->method();