100% test coverage

This commit is contained in:
Alex Bilbie
2014-06-20 14:29:47 +01:00
parent f24d1be3e9
commit 9af1d2a201
4 changed files with 65 additions and 5 deletions

View File

@@ -153,10 +153,9 @@ abstract class AbstractTokenEntity
*/
public function __toString()
{
if (is_null($this->token)) {
throw new \BadMethodCallException('Token is null');
if ($this->token === null) {
return '';
}
return $this->token;
}