| 1 | <?php |
| 2 | |
| 3 | class TestThrowerDummy { |
| 4 | public function main() { |
| 5 | $this->doFoo(); |
| 6 | } |
| 7 | |
| 8 | private function doFoo() { |
| 9 | $this->getBar(); |
| 10 | } |
| 11 | |
| 12 | private function getBar() { |
| 13 | $this->getQuux(); |
| 14 | } |
| 15 | |
| 16 | private function getQuux() { |
| 17 | throw new Exception( 'Quux failed' ); |
| 18 | } |
| 19 | |
| 20 | public static function getFile(): string { |
| 21 | return __FILE__; |
| 22 | } |
| 23 | } |