| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | class ErrorHandlerBuilderIntegrationTest extends \PHPUnit_Framework_TestCase |
||
| 5 | { |
||
| 6 | public function setUp() |
||
| 7 | { |
||
| 8 | $this->defaultErrorHandler = set_error_handler(function () { |
||
|
|
|||
| 9 | }); |
||
| 10 | $this->defaultExceptionHandler = set_exception_handler(function () { |
||
| 11 | }); |
||
| 12 | $this->tearDown(); |
||
| 13 | |||
| 14 | $this->builder = new ErrorHandlerBuilder(); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function tearDown() |
||
| 21 | } |
||
| 22 | |||
| 23 | public function testBuild() |
||
| 24 | { |
||
| 25 | $handler = $this->builder->build(); |
||
| 26 | |||
| 27 | $this->assertSame(set_error_handler(function () { |
||
| 28 | }), $this->defaultErrorHandler); |
||
| 29 | $this->assertSame(set_exception_handler(function () { |
||
| 30 | }), $this->defaultExceptionHandler); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function testBuildAndRegister() |
||
| 41 | } |
||
| 42 | } |
||
| 43 |