<?php namespace { class Baz{ function foo(){ print_r(debug_backtrace()); } } function assertTrue(){} class PHPUnitThing{ function testSomething(){ $baz = new Baz(); assertTrue($baz->foo()); // dirty backtrace } } (new PHPUnitThing)->testSomething(); // dirty backtrace $baz = new Baz; assertTrue($baz->foo()); // clean backtrace }
You have javascript disabled. You will not be able to edit any code.