fkooman\OAuth\Client\ClientConfigTest::testSimple PHP Method

testSimple() public method

public testSimple ( )
    public function testSimple()
    {
        $data = array('client_id' => 'foo', 'client_secret' => 'bar', 'authorize_endpoint' => 'http://www.example.org/authorize', 'token_endpoint' => 'http://www.example.org/token');
        $c = new ClientConfig($data);
        $this->assertEquals('foo', $c->getClientId());
        $this->assertEquals('bar', $c->getClientSecret());
        $this->assertEquals('http://www.example.org/authorize', $c->getAuthorizeEndpoint());
        $this->assertEquals('http://www.example.org/token', $c->getTokenEndpoint());
        $this->assertNull($c->getRedirectUri());
        $this->assertFalse($c->getCredentialsInRequestBody());
    }