/** * Get list realms * * @return array */ public function managerGetRealms() { $theRealms = []; foreach ($this->realmManager->getRealms() as $realm) { /* @var $realm \Thruway\Realm */ $theRealms[] = ["name" => $realm->getRealmName()]; } return [$theRealms]; }
public function managerGetRealms() { $theRealms = []; /** @var $realm Realm */ foreach ($this->realmManager->getRealms() as $realm) { $theRealms[] = ["name" => $realm->getRealmName()]; } return array($theRealms); }
public function testWAMP1ValidRealmName() { $this->assertFalse(\Thruway\RealmManager::validRealmName("WAMP1")); }