public function testIsMatch() { $this->assertTrue($this->_paging->isMatch('bad.com')); $this->assertTrue($this->_paging->isMatch('BAD.com')); $this->assertTrue($this->_paging->isMatch('sub.bad.com')); $this->assertTrue($this->_paging->isMatch('bad.com-foo.de')); $this->assertFalse($this->_paging->isMatch('evil.com')); $this->assertTrue($this->_paging->isMatch('foo-bar')); $this->assertTrue($this->_paging->isMatch('foo"bar')); $this->assertTrue($this->_paging->isMatch('test zoo test')); $this->assertFalse($this->_paging->isMatch('testzoo')); $this->assertFalse($this->_paging->isMatch('testzootest')); $this->assertFalse($this->_paging->isMatch('test zootest')); $this->assertFalse($this->_paging->isMatch('foo"bar')); $this->_paging->add('evil.com'); $this->assertTrue($this->_paging->isMatch('evil.com')); }