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