/** * Tests toArray method exception. * * @expectedException \LogicException */ public function testToArrayException() { $phrase = new Phrase('', ''); $phrase->toArray(); }