public function testDotCookieSubdomainDomainSuffixMatch()
 {
     $domainMatcher = new DomainMatcher();
     $this->assertTrue($domainMatcher->isMatch('.blog.example.com', 'foo.blog.example.com'));
 }
 public function testEmptyCookieDomain()
 {
     $domainMatcher = new DomainMatcher();
     $this->assertFalse($domainMatcher->isMatch('', 'example.com'));
 }
 public function testExactMatch()
 {
     $domainMatcher = new DomainMatcher();
     $this->assertTrue($domainMatcher->isMatch('example.com', 'example.com'));
 }
 public function testDotCookieDomainMatchesBareDomain()
 {
     $domainMatcher = new DomainMatcher();
     $this->assertTrue($domainMatcher->isMatch('.example.com', 'example.com'));
 }