Пример #1
0
 /**
  * @covers Etechnika\ExtLib\Domain\Tld::__invoke
  */
 public function testInvoke()
 {
     $objTld = Tld::create('pl');
     $this->assertEquals('pl', $objTld());
 }
Пример #2
0
 /**
  * Return tld object
  *
  * @return Tld
  */
 public function getTld()
 {
     if ($this->isSubdomain()) {
         throw new InvalidTldException('Invalid tld "' . var_export($this->getTldNameOrSubdomainName(), true) . '"');
     }
     return Tld::create($this->getTldNameOrSubdomainName(), $this->isIntranet());
 }