set($this->remote_whitelist); $res = $whitelist->check($hostname); $this->assertTrue($res, "Should be a valid hostname on the whitelist: '$hostname'."); } /** * Test * * @param string $hostname not matching the whitelist * * @return void * * @dataProvider providerHostnameNoMatch * */ public function testRemoteHostWhitelistNoMatch($hostname) { $whitelist = new CWhitelist(); $whitelist->set($this->remote_whitelist); $res = $whitelist->check($hostname); $this->assertFalse($res, "Should not be a valid hostname on the whitelist: '$hostname'."); } }