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