Changeset View
Changeset View
Standalone View
Standalone View
src/error/__tests__/PhutilErrorHandlerTestCase.php
Context not available. | |||||
public function testSilenceHandler() { | public function testSilenceHandler() { | ||||
// Errors should normally be logged. | // Errors should normally be logged. | ||||
$this->assertTrue(strlen($this->emitError()) > 0); | $this->assertTrue(@strlen($this->emitError()) > 0); | ||||
// The "@" operator should silence errors. | // The "@" operator should silence errors. | ||||
$this->assertTrue(@strlen($this->emitError()) === 0); | $this->assertTrue(@strlen($this->emitError()) === 0); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0