コード例 #1
0
 public function testItCanBeCreatedFromThePatterns()
 {
     assertSame('"ClassName" is read only.', ReadOnlyException::fromClassName('ClassName')->getMessage());
 }
コード例 #2
0
 /**
  * @param mixed $offset
  *
  * @throws ReadOnlyException
  */
 public function offsetUnset($offset)
 {
     throw ReadOnlyException::fromClassName(__CLASS__);
 }