Skip to content

Commit

Permalink
upgraded phpunit in composer to ^6.0, fixed phpunit namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
durmaj committed Feb 14, 2019
1 parent 694b8a5 commit c0487fc
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -23,7 +23,7 @@
"zendframework/zend-diactoros": "^1.3 || ^2.0"
},
"require-dev": {
"phpunit/phpunit": "^5.2",
"phpunit/phpunit": "^6.0",
"squizlabs/php_codesniffer": "^2.5"
},
"suggest": {
Expand Down
3 changes: 2 additions & 1 deletion test/ConfigProviderTest.php
Expand Up @@ -19,11 +19,12 @@
namespace ZfrShopifyTest;

use ZfrShopify\ConfigProvider;
use PHPUnit\Framework\TestCase;

/**
* @author Daniel Gimenes
*/
final class ConfigProviderTest extends \PHPUnit\Framework\TestCase
final class ConfigProviderTest extends TestCase
{
public function testProvidesContainerConfig()
{
Expand Down
3 changes: 2 additions & 1 deletion test/Container/ShopifyClientFactoryTest.php
Expand Up @@ -21,11 +21,12 @@
use Psr\Container\ContainerInterface;
use ZfrShopify\Exception\RuntimeException;
use ZfrShopify\Container\ShopifyClientFactory;
use PHPUnit\Framework\TestCase;

/**
* @author Michaël Gallego
*/
class ShopifyClientFactoryTest extends \PHPUnit_Framework_TestCase
class ShopifyClientFactoryTest extends TestCase
{
public function testThrowExceptionIfNoConfig()
{
Expand Down
3 changes: 2 additions & 1 deletion test/Container/TokenExchangerFactoryTest.php
Expand Up @@ -20,11 +20,12 @@

use Psr\Container\ContainerInterface;
use ZfrShopify\Container\TokenExchangerFactory;
use PHPUnit\Framework\TestCase;

/**
* @author Michaël Gallego
*/
class TokenExchangerFactoryTest extends \PHPUnit_Framework_TestCase
class TokenExchangerFactoryTest extends TestCase
{
public function testFactory()
{
Expand Down
3 changes: 2 additions & 1 deletion test/Model/ShopDomainTest.php
Expand Up @@ -20,8 +20,9 @@

use ZfrShopify\Exception\InvalidArgumentException;
use ZfrShopify\Model\ShopDomain;
use PHPUnit\Framework\TestCase;

class ShopDomainTest extends \PHPUnit_Framework_TestCase
class ShopDomainTest extends TestCase
{
public function domainProvider()
{
Expand Down
3 changes: 2 additions & 1 deletion test/OAuth/AuthorizationRedirectResponseTest.php
Expand Up @@ -19,11 +19,12 @@
namespace ZfrShopifyTest\OAuth;

use ZfrShopify\OAuth\AuthorizationRedirectResponse;
use PHPUnit\Framework\TestCase;

/**
* @author Michaël Gallego
*/
class AuthorizationRedirectResponseTest extends \PHPUnit_Framework_TestCase
class AuthorizationRedirectResponseTest extends TestCase
{
public function shopDomainProvider()
{
Expand Down
3 changes: 2 additions & 1 deletion test/OAuth/TokenExchangerTest.php
Expand Up @@ -22,11 +22,12 @@
use Psr\Http\Message\ResponseInterface;
use ZfrShopify\Exception\RuntimeException;
use ZfrShopify\OAuth\TokenExchanger;
use PHPUnit\Framework\TestCase;

/**
* @author Michaël Gallego
*/
class TokenExchangerTest extends \PHPUnit_Framework_TestCase
class TokenExchangerTest extends TestCase
{
public function shopDomainProvider()
{
Expand Down
2 changes: 1 addition & 1 deletion test/ShopifyClientTest.php
Expand Up @@ -35,7 +35,7 @@
/**
* @author Michaël Gallego
*/
class ShopifyClientTest extends \PHPUnit\Framework\TestCase
class ShopifyClientTest extends TestCase
{
public function validationData()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Validator/ApplicationProxyRequestValidatorTest.php
Expand Up @@ -6,7 +6,7 @@
use ZfrShopify\Exception\InvalidApplicationProxyRequestException;
use ZfrShopify\Validator\ApplicationProxyRequestValidator;

class ApplicationProxyRequestValidatorTest extends \PHPUnit_Framework_TestCase
class ApplicationProxyRequestValidatorTest extends \PHPUnit\Framework\TestCase
{
public function testValidateSignature()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Validator/RequestValidatorTest.php
Expand Up @@ -25,7 +25,7 @@
/**
* @author Michaël Gallego
*/
class RequestValidatorTest extends \PHPUnit_Framework_TestCase
class RequestValidatorTest extends \PHPUnit\Framework\TestCase
{
public function shopHmacProvider()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Validator/WebhookValidatorTest.php
Expand Up @@ -25,7 +25,7 @@
/**
* @author Michaël Gallego
*/
class WebhookValidatorTest extends \PHPUnit_Framework_TestCase
class WebhookValidatorTest extends \PHPUnit\Framework\TestCase
{
public function testThrowExceptionIfWebhookHeaderIsNotPresent()
{
Expand Down

0 comments on commit c0487fc

Please sign in to comment.