예제 #1
0
 public function isIgnoredPlayer(FoosPlayer $player)
 {
     foreach ($this->getIgnoreList() as $ignoredName) {
         if ($player->matchesName($ignoredName)) {
             return true;
         }
     }
     return false;
 }
예제 #2
0
 function testMatchName()
 {
     $player = new FoosPlayer('Name', 1);
     $this->assertTrue($player->matchesName('name'));
     $this->assertFalse($player->matchesName('hamster'));
 }