<trclass="success popin"data-title="1 test covers line 72"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 73"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 87"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 92"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 104"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 105"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 110"data-content="<ul><li class="success">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="success popin"data-title="4 tests cover line 113"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsMissingResponseType</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidResponseType</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidScope</li><li class="success">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="success popin"data-title="4 tests cover line 114"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsMissingResponseType</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidResponseType</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidScope</li><li class="success">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="success popin"data-title="1 test covers line 115"data-content="<ul><li class="success">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="success popin"data-title="3 tests cover line 119"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidResponseType</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCheckAuthoriseParamsInvalidScope</li><li class="success">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="success popin"data-title="1 test covers line 120"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 128"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 129"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 130"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 131"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 133"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 148"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 149"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 150"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 151"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="151"></a><ahref="#151">151</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="success popin"data-title="1 test covers line 154"data-content="<ul><li class="success">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="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="success popin"data-title="1 test covers line 155"data-content="<ul><li class="success">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">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="success popin"data-title="1 test covers line 156"data-content="<ul><li class="success">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">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="success popin"data-title="1 test covers line 157"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</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">$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="success popin"data-title="1 test covers line 159"data-content="<ul><li class="success">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="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="success popin"data-title="1 test covers line 160"data-content="<ul><li class="success">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">$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="success popin"data-title="1 test covers line 161"data-content="<ul><li class="success">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="success popin"data-title="1 test covers line 163"data-content="<ul><li class="success">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">$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="success popin"data-title="1 test covers line 164"data-content="<ul><li class="success">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">save</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="success popin"data-title="1 test covers line 166"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testNewAuthoriseRequest</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="166"></a><ahref="#166">166</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="success popin"data-title="1 test covers line 181"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowMissingClientId</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="181"></a><ahref="#181">181</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="success popin"data-title="1 test covers line 187"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowMissingClientSecret</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">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="success popin"data-title="1 test covers line 192"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowMissingRedirectUri</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="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="success popin"data-title="1 test covers line 204"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowInvalidClient</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="204"></a><ahref="#204">204</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="success popin"data-title="1 test covers line 205"data-content="<ul><li class="success">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="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="success popin"data-title="1 test covers line 211"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowMissingCode</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">'code'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="success popin"data-title="1 test covers line 216"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowInvalidCode</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="216"></a><ahref="#216">216</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="success popin"data-title="4 tests cover line 220"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowExpiredCode</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowRedirectUriMismatch</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlow</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="220"></a><ahref="#220">220</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="success popin"data-title="1 test covers line 221"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowExpiredCode</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">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="success popin"data-title="3 tests cover line 225"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowRedirectUriMismatch</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlow</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="225"></a><ahref="#225">225</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="success popin"data-title="1 test covers line 226"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowRedirectUriMismatch</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">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="success popin"data-title="2 tests cover line 252"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlow</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="252"></a><ahref="#252">252</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="success popin"data-title="1 test covers line 253"data-content="<ul><li class="success">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="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="success popin"data-title="1 test covers line 254"data-content="<ul><li class="success">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="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="success popin"data-title="1 test covers line 255"data-content="<ul><li class="success">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">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="success popin"data-title="1 test covers line 256"data-content="<ul><li class="success">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">$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="success popin"data-title="1 test covers line 257"data-content="<ul><li class="success">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="keyword">}</span></td></tr>
<trclass="success popin"data-title="2 tests cover line 266"data-content="<ul><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlow</li><li class="success">LeagueTests\Grant\AuthCodeGrantTest::testCompleteFlowWithRefreshToken</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="266"></a><ahref="#266">266</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="success popin"data-title="1 test covers line 267"data-content="<ul><li class="success">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="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="success popin"data-title="1 test covers line 268"data-content="<ul><li class="success">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">save</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="success popin"data-title="1 test covers line 269"data-content="<ul><li class="success">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="keyword">}</span></td></tr>
<small>Generated by <ahref="http://github.com/sebastianbergmann/php-code-coverage"target="_top">PHP_CodeCoverage 2.0.14</a> using <ahref="http://php.net/"target="_top">PHP 5.5.19</a> and <ahref="http://phpunit.de/">PHPUnit 4.3.5</a> at Fri Jan 23 10:49:51 UTC 2015.</small>