Пример #1
0
 public function testAkismetCustomApiInformation()
 {
     $akismet = new Akismet();
     $akismet->setApiBaseUrl('rest.internal.akismet.com');
     $akismet->setApiVersion('2.2');
     $akismet->setApiKey('123qwe456rty');
     $this->assertSame($akismet->getApiBaseUrl(), 'rest.internal.akismet.com');
     $this->assertSame($akismet->getApiVersion(), '2.2');
     $this->assertSame($akismet->getApiKey(), '123qwe456rty');
 }