/** * @expectedException \Exception * @expectedExceptionMessage Messages not initialized */ public function testUnitializedObjectShouldThrowException() { Messages::destroy(); $all = Messages::all(); }