Skip to content

Commit

Permalink
Fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Jul 3, 2014
1 parent 29451b5 commit d0378fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/OAuthServiceProvider.php
Expand Up @@ -13,7 +13,8 @@ class OAuthServiceProvider extends ServiceProvider {
*/
public function boot()
{
$this->package('jenssegers/oauth');
// Fix for PSR-4
$this->package('jenssegers/oauth', 'oauth', realpath(__DIR__));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/OAuthTest.php
Expand Up @@ -51,7 +51,7 @@ public function testCreatesConsumer()
Config::set('oauth::consumers.facebook.client_id', '123');
Config::set('oauth::consumers.facebook.client_secret', 'ABC');

$serviceFactory = Mockery::mock('OAuth\ServiceFactory');
$serviceFactory = Mockery::mock('OAuth\ServiceFactory[createService]');
$serviceFactory->shouldReceive('createService')->passthru();

$oauth = new OAuth($serviceFactory, new Memory);
Expand All @@ -64,7 +64,7 @@ public function testServiceAlias()
Config::set('oauth::consumers.facebook.client_id', '123');
Config::set('oauth::consumers.facebook.client_secret', 'ABC');

$serviceFactory = Mockery::mock('OAuth\ServiceFactory');
$serviceFactory = Mockery::mock('OAuth\ServiceFactory[createService]');
$serviceFactory->shouldReceive('createService')->passthru();

$oauth = new OAuth($serviceFactory, new Memory);
Expand Down

0 comments on commit d0378fd

Please sign in to comment.