Example #1
0
 /**
  * Removes a key/value pair
  *
  * @param string $key The key
  *
  * @return void
  */
 public function offsetUnset($key)
 {
     assert(Validate::isString($key), sprintf('Invalid metadata key: (%s) %s', gettype($key), VarPrinter::toString($key)));
     $this->remove($key);
 }
Example #2
0
 /**
  * @dataProvider invalidStringProvider
  */
 public function test_that_is_string_returns_false_for_invalid_value($value)
 {
     $this->assertFalse(Validate::isString($value));
 }