composer: * mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0 The following sniffs now pass and were enabled: * Generic.ControlStructures.InlineControlStructure * MediaWiki.PHPUnit.AssertCount.NotUsed npm: * svgo: 2.3.0 → 2.3.1 * https://npmjs.com/advisories/1754 (CVE-2021-33587) Change-Id: I2a9bbee2fecbf7259876d335f565ece4b3622426
23 lines
326 B
PHP
23 lines
326 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__;
|
|
}
|
|
}
|