<trclass="covered-by-small-tests popin"data-title="1 test covers line 72"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testSetAuthTokenTTL</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="72"></a><ahref="#72">72</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">authTokenTTL</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">$authTokenTTL</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 73"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testSetAuthTokenTTL</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="73"></a><ahref="#73">73</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 87"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsMissingClientId</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="87"></a><ahref="#87">87</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'client_id'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 92"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsMissingRedirectUri</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="92"></a><ahref="#92">92</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'redirect_uri'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 104"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidClient</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="104"></a><ahref="#104">104</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">getEventEmitter</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">emit</span><spanclass="keyword">(</span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Event</span><spanclass="default">\</span><spanclass="default">ClientAuthenticationFailedEvent</span><spanclass="keyword">(</span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">getRequest</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 105"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidClient</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="105"></a><ahref="#105">105</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidClientException</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 110"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsMissingStateParam</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="110"></a><ahref="#110">110</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'state'</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">$redirectUri</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="4 tests cover line 113"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsMissingResponseType</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidResponseType</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidScope</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParams</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="113"></a><ahref="#113">113</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$responseType</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">getRequest</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">query</span><spanclass="default">-></span><spanclass="default">get</span><spanclass="keyword">(</span><spanclass="default">'response_type'</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">null</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="4 tests cover line 114"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsMissingResponseType</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidResponseType</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidScope</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParams</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="114"></a><ahref="#114">114</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="default">is_null</span><spanclass="keyword">(</span><spanclass="default">$responseType</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 115"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsMissingResponseType</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="115"></a><ahref="#115">115</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'response_type'</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">$redirectUri</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="3 tests cover line 119"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidResponseType</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidScope</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParams</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="119"></a><ahref="#119">119</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="keyword">!</span><spanclass="default">in_array</span><spanclass="keyword">(</span><spanclass="default">$responseType</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">getResponseTypes</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 120"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidResponseType</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="120"></a><ahref="#120">120</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">UnsupportedResponseTypeException</span><spanclass="keyword">(</span><spanclass="default">$responseType</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">$redirectUri</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 128"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParams</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="128"></a><ahref="#128">128</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'client'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$client</span><spanclass="keyword">,</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 129"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParams</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="129"></a><ahref="#129">129</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'redirect_uri'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$redirectUri</span><spanclass="keyword">,</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 130"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParams</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="130"></a><ahref="#130">130</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'state'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$state</span><spanclass="keyword">,</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 131"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParams</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="131"></a><ahref="#131">131</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'response_type'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$responseType</span><spanclass="keyword">,</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 133"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParams</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="133"></a><ahref="#133">133</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">]</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 148"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="148"></a><ahref="#148">148</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$session</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">SessionEntity</span><spanclass="keyword">(</span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 149"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="149"></a><ahref="#149">149</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$session</span><spanclass="default">-></span><spanclass="default">setOwner</span><spanclass="keyword">(</span><spanclass="default">$type</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">$typeId</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 150"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="150"></a><ahref="#150">150</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$session</span><spanclass="default">-></span><spanclass="default">associateClient</span><spanclass="keyword">(</span><spanclass="default">$authParams</span><spanclass="keyword">[</span><spanclass="default">'client'</span><spanclass="keyword">]</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 153"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="153"></a><ahref="#153">153</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$authCode</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">AuthCodeEntity</span><spanclass="keyword">(</span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 154"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="154"></a><ahref="#154">154</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$authCode</span><spanclass="default">-></span><spanclass="default">setId</span><spanclass="keyword">(</span><spanclass="default">SecureKey</span><spanclass="default">::</span><spanclass="default">generate</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 155"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="155"></a><ahref="#155">155</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$authCode</span><spanclass="default">-></span><spanclass="default">setRedirectUri</span><spanclass="keyword">(</span><spanclass="default">$authParams</span><spanclass="keyword">[</span><spanclass="default">'redirect_uri'</span><spanclass="keyword">]</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 156"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="156"></a><ahref="#156">156</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$authCode</span><spanclass="default">-></span><spanclass="default">setExpireTime</span><spanclass="keyword">(</span><spanclass="default">time</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">+</span><spanclass="default"> </span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">authTokenTTL</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 158"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="158"></a><ahref="#158">158</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">foreach</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="default">$authParams</span><spanclass="keyword">[</span><spanclass="default">'scopes'</span><spanclass="keyword">]</span><spanclass="default"> </span><spanclass="keyword">as</span><spanclass="default"> </span><spanclass="default">$scope</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 159"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="159"></a><ahref="#159">159</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$authCode</span><spanclass="default">-></span><spanclass="default">associateScope</span><spanclass="keyword">(</span><spanclass="default">$scope</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 160"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="160"></a><ahref="#160">160</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$session</span><spanclass="default">-></span><spanclass="default">associateScope</span><spanclass="keyword">(</span><spanclass="default">$scope</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 161"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="161"></a><ahref="#161">161</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 163"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="163"></a><ahref="#163">163</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$session</span><spanclass="default">-></span><spanclass="default">save</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 164"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="164"></a><ahref="#164">164</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$authCode</span><spanclass="default">-></span><spanclass="default">setSession</span><spanclass="keyword">(</span><spanclass="default">$session</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 165"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="165"></a><ahref="#165">165</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$authCode</span><spanclass="default">-></span><spanclass="default">save</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 167"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="167"></a><ahref="#167">167</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">$authCode</span><spanclass="default">-></span><spanclass="default">generateRedirectUri</span><spanclass="keyword">(</span><spanclass="default">$authParams</span><spanclass="keyword">[</span><spanclass="default">'state'</span><spanclass="keyword">]</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 182"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowMissingClientId</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="182"></a><ahref="#182">182</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'client_id'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 188"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowMissingClientSecret</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="188"></a><ahref="#188">188</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'client_secret'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 193"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowMissingRedirectUri</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="193"></a><ahref="#193">193</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'redirect_uri'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 205"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowInvalidClient</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="205"></a><ahref="#205">205</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">getEventEmitter</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">emit</span><spanclass="keyword">(</span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Event</span><spanclass="default">\</span><spanclass="default">ClientAuthenticationFailedEvent</span><spanclass="keyword">(</span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">getRequest</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 206"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowInvalidClient</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="206"></a><ahref="#206">206</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidClientException</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 212"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowMissingCode</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="212"></a><ahref="#212">212</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'code'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 217"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowInvalidCode</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="217"></a><ahref="#217">217</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'code'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="4 tests cover line 221"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowExpiredCode</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowRedirectUriMismatch</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlow</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="221"></a><ahref="#221">221</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="default">$code</span><spanclass="default">-></span><spanclass="default">isExpired</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">===</span><spanclass="default"> </span><spanclass="default">true</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 222"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowExpiredCode</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="222"></a><ahref="#222">222</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'code'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="3 tests cover line 226"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowRedirectUriMismatch</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlow</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="226"></a><ahref="#226">226</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="default">$code</span><spanclass="default">-></span><spanclass="default">getRedirectUri</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">!==</span><spanclass="default"> </span><spanclass="default">$redirectUri</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 227"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowRedirectUriMismatch</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="227"></a><ahref="#227">227</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">throw</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">Exception</span><spanclass="default">\</span><spanclass="default">InvalidRequestException</span><spanclass="keyword">(</span><spanclass="default">'redirect_uri'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="2 tests cover line 253"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlow</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="253"></a><ahref="#253">253</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">hasGrantType</span><spanclass="keyword">(</span><spanclass="default">'refresh_token'</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 254"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="254"></a><ahref="#254">254</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$refreshToken</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="keyword">new</span><spanclass="default"> </span><spanclass="default">RefreshTokenEntity</span><spanclass="keyword">(</span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 255"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="255"></a><ahref="#255">255</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$refreshToken</span><spanclass="default">-></span><spanclass="default">setId</span><spanclass="keyword">(</span><spanclass="default">SecureKey</span><spanclass="default">::</span><spanclass="default">generate</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 256"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="256"></a><ahref="#256">256</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$refreshToken</span><spanclass="default">-></span><spanclass="default">setExpireTime</span><spanclass="keyword">(</span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">getGrantType</span><spanclass="keyword">(</span><spanclass="default">'refresh_token'</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">getRefreshTokenTTL</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">+</span><spanclass="default"> </span><spanclass="default">time</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 257"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="257"></a><ahref="#257">257</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">getTokenType</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">setParam</span><spanclass="keyword">(</span><spanclass="default">'refresh_token'</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">$refreshToken</span><spanclass="default">-></span><spanclass="default">getId</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 258"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="258"></a><ahref="#258">258</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="2 tests cover line 267"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlow</li><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="267"></a><ahref="#267">267</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="keyword">isset</span><spanclass="keyword">(</span><spanclass="default">$refreshToken</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">&&</span><spanclass="default"> </span><spanclass="default">$this</span><spanclass="default">-></span><spanclass="default">server</span><spanclass="default">-></span><spanclass="default">hasGrantType</span><spanclass="keyword">(</span><spanclass="default">'refresh_token'</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 268"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="268"></a><ahref="#268">268</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$refreshToken</span><spanclass="default">-></span><spanclass="default">setAccessToken</span><spanclass="keyword">(</span><spanclass="default">$accessToken</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 269"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="269"></a><ahref="#269">269</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$refreshToken</span><spanclass="default">-></span><spanclass="default">save</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 270"data-content="<ul><li class="covered-by-small-tests">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="270"></a><ahref="#270">270</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">}</span></td></tr>
<small>Generated by <ahref="http://github.com/sebastianbergmann/php-code-coverage"target="_top">PHP_CodeCoverage 2.2.2</a> using <ahref="http://php.net/"target="_top">PHP 5.6.5</a> and <ahref="http://phpunit.de/">PHPUnit 4.3.5</a> at Fri Aug 21 8:00:32 UTC 2015.</small>