public function testArrayAccess() { $app = $this->getApp(); $globalDebug = $this->getExtension()->config['debug']; $formConfig = $this->formConfig(); $postData = $this->formData(); $formData = new FormData($postData); $emailconfig = new EmailConfig($globalDebug, $formConfig, $formData); $this->assertNull($emailconfig->offsetSet('debug', true)); $this->assertNull($emailconfig->offsetExists('debug')); $this->assertNull($emailconfig->offsetUnset('debug')); $this->assertSame('Gawain Lynch', $emailconfig->offsetGet('from_name')); }