| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public static function setUpBeforeClass() |
||
| 36 | { |
||
| 37 | if (false == function_exists('geoip_open')) { |
||
|
|
|||
| 38 | self::markTestSkipped('The maxmind\'s official lib required to run these tests.'); |
||
| 39 | } |
||
| 40 | |||
| 41 | if (false == function_exists('GeoIP_record_by_addr')) { |
||
| 42 | self::markTestSkipped('The maxmind\'s official lib required to run these tests.'); |
||
| 43 | } |
||
| 44 | |||
| 45 | parent::setUpBeforeClass(); |
||
| 46 | } |
||
| 47 | |||
| 63 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.