Esempio n. 1
0
 /**
  * @depends test_construct
  * @covers ::offsetSet
  */
 public function test_offsetSet()
 {
     try {
         $this->Email['Personal'] = 'Test User';
         $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->Email->offsetSet('Personal', 'Test User');
 }