public function testSetsUrlAsGrantType() { $o = new OAuth2($this->minimal); $o->setGrantType('http://a/grant/url'); $this->assertEquals('http://a/grant/url', $o->getGrantType()); }
public function testSetsUrlAsGrantType() { $o = new OAuth2($this->minimal); $o->setGrantType('http://a/grant/url'); $this->assertInstanceOf('GuzzleHttp\\Url', $o->getGrantType()); $this->assertEquals('http://a/grant/url', strval($o->getGrantType())); }