/** * Tests the exception, thrown by the validate_longitude method. * * @test * @covers Gmap::set_pos * @covers Gmap::validate_longitude * @expectedException Kohana_Exception */ function test_validate_longitude_exception_if_lower_than_minus90() { $map = new Gmap(); $map->set_pos(NULL, -90.09999999999999); }