public function testUsesStaticWhenCreatingNew() { $qs = new QueryString(array('a' => 'b', 'c' => 'd')); $this->assertInstanceOf('Guzzle\\Http\\QueryString', $qs->map(function ($a, $b) { })); $this->assertInstanceOf('Guzzle\\Common\\Collection', $qs->map(function ($a, $b) { }, array(), false)); $this->assertInstanceOf('Guzzle\\Http\\QueryString', $qs->filter(function ($a, $b) { })); $this->assertInstanceOf('Guzzle\\Common\\Collection', $qs->filter(function ($a, $b) { }, false)); }