public function testGetQuotesAsArray() { $fortune = new Fortune(); $fortune->setQuotes(<<<EOL This line should not exist, expects when importing legacy fortune. <me> Hello <him> Hi ! <her> coucou => ca va ? EOL ); $expected = array(array('nick' => '', 'quote' => 'This line should not exist, expects when importing legacy fortune.'), array('nick' => 'me', 'quote' => 'Hello'), array('nick' => 'him', 'quote' => 'Hi !'), array('nick' => 'her', 'quote' => 'coucou => ca va ?')); $this->assertSame($expected, $fortune->getQuotesAsArray()); }