Avoid the complexity of MWDebug added in 2704be7df8.
Motivated by I1d4a166b6dff8b, which makes the native deprecation happen
always, and would otherwise make this test fail since native warnings
become exceptions in PHPUnit.
Change-Id: I83f19c26bb69b8aa5d1a91f7aa286aad56f5e64d