/** * Test that the correct IP is returned by the function * @param String $ip The test IP address * @param String $var The $_SERVER array key * * @group pdf-model * @dataProvider provider_notifications_list */ public function test_check_notification($notification_name, $notifications, $expected) { $this->assertEquals($expected, GFPDF_Core_Model::check_notification($notification_name, $notifications)); }