Skip to content

Commit

Permalink
Applied fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
frankkessler authored and StyleCIBot committed Sep 15, 2016
1 parent 32479d1 commit 72eebbe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/Clients/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Frankkessler\Incontact\Clients;

use CommerceGuys\Guzzle\Oauth2\AccessToken;
use CommerceGuys\Guzzle\Oauth2\Exceptions\InvalidGrantException;
use CommerceGuys\Guzzle\Oauth2\GrantType\GrantTypeInterface;
use CommerceGuys\Guzzle\Oauth2\GrantType\RefreshToken;
use CommerceGuys\Guzzle\Oauth2\GrantType\RefreshTokenGrantTypeInterface;
Expand Down
1 change: 0 additions & 1 deletion tests/DbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ public function testAgentApiBadRequestWithRepository()
$result = $incontact->AdminApi()->agents();

$this->assertEquals(404, $result['http_status']);

}

public function returnAuthorizationCodeAccessTokenResponse()
Expand Down
28 changes: 13 additions & 15 deletions tests/ServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php

use \Closure;
use \Mockery;
use \ArrayAccess;
use \ReflectionClass;
use \ReflectionMethod;
use \Mockery\MockInterface;
use \Frankkessler\Incontact\Providers\IncontactLaravelServiceProvider;
use \Illuminate\Contracts\Foundation\Application as ApplicationInterface;

use \Mockery;
use \Mockery\MockInterface;
use \ReflectionClass;
use \ReflectionMethod;

class LaravelServiceProviderTest extends \Mockery\Adapter\Phpunit\MockeryTestCase
{
Expand All @@ -28,18 +26,18 @@ class LaravelServiceProviderTest extends \Mockery\Adapter\Phpunit\MockeryTestCas
private $provider;

/**
* @inheritDoc
* {@inheritdoc}
*/
protected function setUp()
{
parent::setUp();

$this->config = Mockery::mock();
$this->config = Mockery::mock();

$this->app = Mockery::mock(ArrayAccess::class);
/** @noinspection PhpMethodParametersCountMismatchInspection */
/* @noinspection PhpMethodParametersCountMismatchInspection */
//$this->app->shouldReceive('offsetGet')->zeroOrMoreTimes()->with('path.config')->andReturn('/some/config/path');
/** @noinspection PhpMethodParametersCountMismatchInspection */
/* @noinspection PhpMethodParametersCountMismatchInspection */
//$this->app->shouldReceive('offsetGet')->zeroOrMoreTimes()->with('config')->andReturn($this->config);

/** @var ApplicationInterface $app */
Expand All @@ -53,11 +51,11 @@ protected function setUp()
*/
public function testRegister()
{
/** @noinspection PhpMethodParametersCountMismatchInspection */
/* @noinspection PhpMethodParametersCountMismatchInspection */
//$this->config->shouldReceive('get')->withAnyArgs()->once()->andReturn([]);
/** @noinspection PhpMethodParametersCountMismatchInspection */
/* @noinspection PhpMethodParametersCountMismatchInspection */
//$this->config->shouldReceive('set')->withAnyArgs()->once()->andReturnUndefined();
/** @noinspection PhpMethodParametersCountMismatchInspection */
/* @noinspection PhpMethodParametersCountMismatchInspection */
//$this->app->shouldReceive('bind')->withAnyArgs()->twice()->andReturnUndefined();

//$this->provider->register();
Expand All @@ -70,10 +68,10 @@ public function testRegister()
*/
protected static function getMethod($name)
{
$class = new ReflectionClass(IncontactLaravelServiceProvider::class);
$class = new ReflectionClass(IncontactLaravelServiceProvider::class);
$method = $class->getMethod($name);
$method->setAccessible(true);

return $method;
}
}
}

0 comments on commit 72eebbe

Please sign in to comment.