Open mallorydxw opened 8 years ago
Sounds like a good idea to me! For now, I'll shamelessly plug a couple of my own libraries that might help you out:
Asplode::install()
in your peridot.php
.Neither of these handlers throw different error exception types for different error severities. If you need that level of granularity, you'll have to use a try
/catch
block for now.
Also please be aware of #20. It will probably affect you also, if you choose one of the above approaches.
PHPUnit has
$this->setExpectedException('PHPUnit_Framework_Error_Warning');
. Leo should provide some way of doing this too. Something like this: