Exemplo n.º 1
0
 public function testPrepend()
 {
     $arrayObject = new ArrayObject([1, 2, 3]);
     $new = $arrayObject->prepend(0);
     $this->assertNotSame($new, $arrayObject);
     $this->assertSame([0, 1, 2, 3], $new->getArrayCopy());
 }
 /**
  * @param string $arg
  */
 public function prependArg($arg)
 {
     Assertion::string($arg);
     $this->args = $this->args->prepend($arg);
 }