public function testTopFive() { $texter = new Texter(); $sentence = 'Five, five four. Five four three, five four three two! FIVE FOUR THREE TWO ONE!!!! ! ! !!!!'; $tally = $texter->tally($texter->split($sentence)); $actual = $texter->top($tally, 5); $expected = array('five' => 5, 'four' => 4, 'three' => 3, 'two' => 2, 'one' => 1); $this->assertEquals($expected, $actual); }