/** @test */
 public function it_creates_an_exception_for_array_access_read_mode()
 {
     $exception = MethodNotImplementedException::arrayAccessReadOnly('ClassName');
     $this->assertEquals('Array access on ClassName is read only.', $exception->getMessage());
 }
Esempio n. 2
0
 /**
  * @internal
  *
  * @param mixed $offset
  *
  * @throws MethodNotImplementedException
  */
 public function offsetUnset($offset)
 {
     throw MethodNotImplementedException::arrayAccessReadOnly(__CLASS__);
 }