| Conditions | 2 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 19 | public function load(Bouncer $instance) |
||
| 20 | { |
||
| 21 | parent::load($instance); |
||
| 22 | |||
| 23 | $exitHandler = function() { |
||
| 24 | // error_log('Test profile. Not exiting.'); |
||
| 25 | }; |
||
| 26 | |||
| 27 | $instance->setOptions(array('exitHandler' => $exitHandler)); |
||
| 28 | |||
| 29 | $responseCodeHandler = function($code = null) { |
||
| 30 | static $currentCode = 200; |
||
| 31 | if ($code) { |
||
| 32 | $currentCode = $code; |
||
| 33 | } |
||
| 34 | return $currentCode; |
||
| 35 | }; |
||
| 36 | |||
| 37 | $instance->setOptions(array('responseCodeHandler' => $responseCodeHandler)); |
||
| 38 | } |
||
| 39 | |||
| 51 |