| 1 | <?php |
||
| 18 | class IPTest extends \PHPUnit_Framework_TestCase |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $excludedIPs = [ |
||
| 24 | '98.139.183.24', |
||
| 25 | '74.125.230.5', |
||
| 26 | '204.79.197.200', |
||
| 27 | ]; |
||
| 28 | |||
| 29 | public function testCreation() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @expectedException \InvalidArgumentException |
||
| 37 | */ |
||
| 38 | public function testBadIp() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @expectedException \InvalidArgumentException |
||
| 45 | */ |
||
| 46 | public function testBadProxyIp() |
||
| 50 | |||
| 51 | public function testIsExcluded() |
||
| 59 | |||
| 60 | public function testIsNotExcluded() |
||
| 68 | } |
||
| 69 |