Cleaned up tests

This commit is contained in:
Alex Bilbie
2014-05-03 10:55:25 +01:00
parent ed7f5370ca
commit 5c8ed58c67
22 changed files with 75 additions and 88 deletions

View File

@@ -10,7 +10,7 @@ use \Mockery as M;
class AuthCodeTest extends \PHPUnit_Framework_TestCase
{
function testSetGet()
public function testSetGet()
{
$server = M::mock('League\OAuth2\Server\AbstractServer');
@@ -26,7 +26,7 @@ class AuthCodeTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($code->getSession() instanceof \League\OAuth2\Server\Entity\SessionEntity);
}
function testSave()
public function testSave()
{
$server = M::mock('League\OAuth2\Server\AbstractServer');
$server->shouldReceive('setAuthCodeStorage');
@@ -57,7 +57,7 @@ class AuthCodeTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($entity->save() instanceof AuthCodeEntity);
}
function testExpire()
public function testExpire()
{
$server = new AuthorizationServer();