5a9d8751af
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.
16 linhas
182 B
PHP
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();
|