<trclass="covered-by-small-tests popin"data-title="1 test covers line 80"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="80"></a><ahref="#80">80</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 81"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="81"></a><ahref="#81">81</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 116"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="116"></a><ahref="#116">116</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 121"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="121"></a><ahref="#121">121</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 133"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="133"></a><ahref="#133">133</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 134"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="134"></a><ahref="#134">134</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 139"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="139"></a><ahref="#139">139</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 142"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="142"></a><ahref="#142">142</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 143"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="143"></a><ahref="#143">143</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 144"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="144"></a><ahref="#144">144</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 148"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="148"></a><ahref="#148">148</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 149"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="149"></a><ahref="#149">149</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 157"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="157"></a><ahref="#157">157</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 158"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="158"></a><ahref="#158">158</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 159"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="159"></a><ahref="#159">159</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 160"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="160"></a><ahref="#160">160</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 162"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="162"></a><ahref="#162">162</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 177"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="177"></a><ahref="#177">177</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 178"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="178"></a><ahref="#178">178</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 179"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="179"></a><ahref="#179">179</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 182"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="182"></a><ahref="#182">182</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 183"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="183"></a><ahref="#183">183</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 184"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="184"></a><ahref="#184">184</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 185"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="185"></a><ahref="#185">185</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 187"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="187"></a><ahref="#187">187</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 188"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="188"></a><ahref="#188">188</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 189"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="189"></a><ahref="#189">189</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 190"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="190"></a><ahref="#190">190</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 192"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="192"></a><ahref="#192">192</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 193"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="193"></a><ahref="#193">193</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 194"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="194"></a><ahref="#194">194</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 196"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="196"></a><ahref="#196">196</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 211"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="211"></a><ahref="#211">211</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 217"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="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">'client_secret'</span><spanclass="keyword">)</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::testCompleteFlowMissingRedirectUri</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">'redirect_uri'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-small-tests popin"data-title="1 test covers line 234"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="234"></a><ahref="#234">234</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 235"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="235"></a><ahref="#235">235</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 241"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="241"></a><ahref="#241">241</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 246"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="246"></a><ahref="#246">246</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 250"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="250"></a><ahref="#250">250</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 251"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="251"></a><ahref="#251">251</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 255"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="255"></a><ahref="#255">255</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 256"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="256"></a><ahref="#256">256</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 282"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="282"></a><ahref="#282">282</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 283"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="283"></a><ahref="#283">283</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 284"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="284"></a><ahref="#284">284</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 285"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="285"></a><ahref="#285">285</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 286"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="286"></a><ahref="#286">286</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 287"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="287"></a><ahref="#287">287</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 296"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="296"></a><ahref="#296">296</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 297"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="297"></a><ahref="#297">297</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 298"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="298"></a><ahref="#298">298</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 299"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="299"></a><ahref="#299">299</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.3</a> using <ahref="http://php.net/"target="_top">PHP 5.6.5</a> and <ahref="http://phpunit.de/">PHPUnit 4.3.5</a> at Sat Sep 26 15:05:45 UTC 2015.</small>