grant = new RefreshToken(); } public function testDefault() : void { self::assertEquals('refresh_token', $this->grant->__toString()); self::assertEquals( [ 'refresh_token' => 'value', 'option' => '2', 'test' => 'value2', ], $this->grant->prepareRequestParamters( [ 'refresh_token' => 'value', ], [ 'option' => '2', 'test' => 'value2', ] ) ); } public function testMissingDefaultOption() : void { $this->expectException(\Exception::class); $this->grant->prepareRequestParamters( [ 'test' => 'value', ], [ 'option' => '2', 'test' => 'value2', ] ); } }