public function testDefaultFactoryChecksWithUppercaseToo() { $description = new Description(['operations' => ['Foo' => [], 'bar' => []]]); $c = new GuzzleClient(new Client(), $description); $f = GuzzleClient::defaultCommandFactory($description); $command1 = $f('foo', [], $c); $this->assertInstanceOf('GuzzleHttp\\Command\\Command', $command1); $this->assertEquals('Foo', $command1->getName()); $command2 = $f('Foo', [], $c); $this->assertInstanceOf('GuzzleHttp\\Command\\Command', $command2); $this->assertEquals('Foo', $command2->getName()); }