wiki.techinc.nl/tests/phpunit/data/exception/TestThrowerDummy.php
Timo Tijhof f7e8bc6a69 exception: Add test for MWExceptionHandler trace formatting
Change-Id: I00b9607ba7e17c1f75ef065e83b83d2e1a82870c
2021-01-13 23:26:48 +00:00

23 lines
327 B
PHP

<?php
class TestThrowerDummy {
public function main() {
$this->doFoo();
}
private function doFoo() {
$this->getBar();
}
private function getBar() {
$this->getQuux();
}
private function getQuux() {
throw new Exception( 'Quux failed' );
}
public static function getFile() : string {
return __FILE__;
}
}