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