protected function setUp() { $this->oldErrorHandler = set_error_handler(array($this, 'handleError')); parent::setUp(); }