/** * The part of the url which is after the ? * @return string */ public function queue() { return http_build_query($this->query->all(), "", "&"); }
/** * Checking all methods that implements \ArrayAccess * offsetExists() * offsetGet() * offsetSet() * offsetUnset() */ public function testInterfaceArrayAccess() { $container = new Container(array("foo" => "bar")); $this->assertEquals("bar", $container->offsetGet("foo")); $this->assertSame(null, $container->offsetGet("key")); $this->assertTrue($container->offsetExists("foo")); $this->assertFalse($container->offsetExists("key")); $container->offsetSet("key", "value"); $this->assertTrue($container->offsetExists("key")); $this->assertEquals("value", $container->offsetGet("key")); $container->offsetUnset("key"); $this->assertFalse($container->offsetExists("key")); }