/** * @covers Etechnika\ExtLib\Domain\Tld::__invoke */ public function testInvoke() { $objTld = Tld::create('pl'); $this->assertEquals('pl', $objTld()); }
/** * 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()); }