Renamed namespace to JacobKiers

This commit is contained in:
Jacob Kiers
2013-02-08 10:32:26 +00:00
parent 81a1af738b
commit 204ec8b42f
20 changed files with 123 additions and 124 deletions

View File

@@ -1,6 +1,6 @@
<?php
use GaryJones\OAuth\Client;
use JacobKiers\OAuth\Client;
class ClientTest extends PHPUnit_Framework_TestCase
{

View File

@@ -1,7 +1,7 @@
<?php
use Mockery as m;
use GaryJones\OAuth\HmacSha1;
use JacobKiers\OAuth\HmacSha1;
class HmacSha1Test extends PHPUnit_Framework_TestCase
{
@@ -56,7 +56,7 @@ private function getSignatureMethod()
private function getRequest()
{
return m::mock('GaryJones\OAuth\Request', function ($mock) {
return m::mock('JacobKiers\OAuth\Request', function ($mock) {
$mock->shouldReceive('getSignatureBaseString')
->withNoArgs()
->andReturn('POST&http%3A%2F%2Fexample.com%2Ffoobar&oauth_signature_method%3DHMAC-SHA1')->once();
@@ -65,14 +65,14 @@ private function getRequest()
private function getClient()
{
return m::mock('GaryJones\OAuth\Client', function ($mock) {
return m::mock('JacobKiers\OAuth\Client', function ($mock) {
$mock->shouldReceive('getSecret')->withNoArgs()->andReturn('secret')->once();
});
}
private function getToken()
{
return m::mock('GaryJones\OAuth\Token', function ($mock) {
return m::mock('JacobKiers\OAuth\Token', function ($mock) {
$mock->shouldReceive('getSecret')->withNoArgs()->andReturn('token_secret');
});
}

View File

@@ -1,7 +1,7 @@
<?php
use Mockery as m;
use GaryJones\OAuth\PlainText;
use JacobKiers\OAuth\PlainText;
class PlainTextTest extends PHPUnit_Framework_TestCase
{
@@ -56,19 +56,19 @@ private function getSignatureMethod()
private function getRequest()
{
return m::mock('GaryJones\OAuth\Request');
return m::mock('JacobKiers\OAuth\Request');
}
private function getClient()
{
return m::mock('GaryJones\OAuth\Client', function ($mock) {
return m::mock('JacobKiers\OAuth\Client', function ($mock) {
$mock->shouldReceive('getSecret')->withNoArgs()->andReturn('secret')->once();
});
}
private function getToken()
{
return m::mock('GaryJones\OAuth\Token', function ($mock) {
return m::mock('JacobKiers\OAuth\Token', function ($mock) {
$mock->shouldReceive('getSecret')->withNoArgs()->andReturn('token_secret');
});
}

View File

@@ -1,7 +1,7 @@
<?php
use Mockery as m;
use GaryJones\OAuth\Request;
use JacobKiers\OAuth\Request;
class RequestTest extends PHPUnit_Framework_TestCase
{

View File

@@ -1,7 +1,7 @@
<?php
use Mockery as m;
use GaryJones\OAuth\SignatureMethod;
use JacobKiers\OAuth\SignatureMethod;
/**
* Create concrete class from abstract SignatureMethod.
@@ -14,9 +14,9 @@ public function getName() {
}
public function buildSignature(
\GaryJones\OAuth\Request $request,
\GaryJones\OAuth\Client $client,
\GaryJones\OAuth\Token $token = null
\JacobKiers\OAuth\Request $request,
\JacobKiers\OAuth\Client $client,
\JacobKiers\OAuth\Token $token = null
) {
}
}
@@ -66,14 +66,14 @@ private function getSignatureMethod()
private function getClient()
{
return m::mock('GaryJones\OAuth\Client', function ($mock) {
return m::mock('JacobKiers\OAuth\Client', function ($mock) {
$mock->shouldReceive('getSecret')->withNoArgs()->andReturn('secret')->once();
});
}
private function getToken()
{
return m::mock('GaryJones\OAuth\Token', function ($mock) {
return m::mock('JacobKiers\OAuth\Token', function ($mock) {
$mock->shouldReceive('getSecret')->withNoArgs()->andReturn('token_secret');
});
}

View File

@@ -1,8 +1,8 @@
<?php
use GaryJones\OAuth\Token;
use GaryJones\OAuth\NullToken;
use GaryJones\OAuth\Util;
use JacobKiers\OAuth\Token;
use JacobKiers\OAuth\NullToken;
use JacobKiers\OAuth\Util;
class TokenTest extends PHPUnit_Framework_TestCase
{