예제 #1
0
 /**
  * @return void
  */
 public function testPrependPushesValueToTopOfContainer()
 {
     $this->container['foo'] = 'bar';
     $this->container->prepend('baz');
     $expected = array('baz', 'foo' => 'bar');
     $array = $this->container->getArrayCopy();
     $this->assertSame($expected, $array);
 }