public function testTryLetterWithTriedLetter() { $word = new Word('gobelins'); $this->assertFalse($word->tryLetter('a')); $this->setExpectedException('InvalidArgumentException'); $word->tryLetter('a'); }
public function testTryLetter() { $word = new Word('order'); $this->assertTrue($word->tryLetter('d')); $this->assertEquals(array('d'), $word->getFoundLetters()); }