/** * @depends test_construct * @covers ::offsetUnset */ public function test_offsetUnset() { try { unset($this->URI['host']); $this->fail('Failed to generate notice on readonly offset'); } catch (\PHPUnit_Framework_Error_Notice $e) { $this->assertContains('Cannot modify', $e->getMessage(), 'Invalid Notice: ' . $e->getMessage()); } @$this->URI->offsetUnset('Personal'); }