Beispiel #1
0
 public function testGetWord()
 {
     $word = new Word('php');
     $this->assertEquals(array('p', 'h'), $word->getLetters());
     $this->assertEquals('php', (string) $word);
     $this->assertEquals('php', $word->getWord());
 }
Beispiel #2
0
 public function testGetWord()
 {
     $word = new Word('order');
     $this->assertEquals(array('o', 'r', 'd', 'e'), $word->getLetters());
     $this->assertEquals('order', (string) $word);
     $this->assertEquals('order', $word->getWord());
 }