function test_purge_all() { $csh = new mdl_message_cache(); $csh->purge_all(); $this->assertEquals($csh->get_all(), array()); }