Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #979 from gabriel-caruso/phpunit
Browse files Browse the repository at this point in the history
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
  • Loading branch information
jaypatel512 authored Nov 13, 2017
2 parents 26dadbf + dc0955a commit 2c159e4
Show file tree
Hide file tree
Showing 159 changed files with 321 additions and 163 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"psr/log": "^1.0.0"
},
"require-dev": {
"phpunit/phpunit": "3.7.*"
"phpunit/phpunit": "^4.8.35"
},
"autoload": {
"psr-0": {
Expand Down
5 changes: 2 additions & 3 deletions tests/PayPal/Test/Api/AddressTest.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace PayPal\Test\Api;

use PayPal\Api\Address;
use PHPUnit\Framework\TestCase;

/**
* Class Address
*
* @package PayPal\Test\Api
*/
class AddressTest extends \PHPUnit_Framework_TestCase
class AddressTest extends TestCase
{
/**
* Gets Json String of Object Address
Expand All @@ -29,7 +29,6 @@ public static function getObject()
return new Address(self::getJson());
}


/**
* Tests for Serialization and Deserialization Issues
* @return Address
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/AgreementStateDescriptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\AgreementStateDescriptor;
use PHPUnit\Framework\TestCase;

/**
* Class AgreementStateDescriptor
*
* @package PayPal\Test\Api
*/
class AgreementStateDescriptorTest extends \PHPUnit_Framework_TestCase
class AgreementStateDescriptorTest extends TestCase
{
/**
* Gets Json String of Object AgreementStateDescriptor
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/AgreementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\Agreement;
use PHPUnit\Framework\TestCase;

/**
* Class Agreement
*
* @package PayPal\Test\Api
*/
class AgreementTest extends \PHPUnit_Framework_TestCase
class AgreementTest extends TestCase
{
/**
* Gets Json String of Object Agreement
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/AgreementTransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\AgreementTransaction;
use PHPUnit\Framework\TestCase;

/**
* Class AgreementTransaction
*
* @package PayPal\Test\Api
*/
class AgreementTransactionTest extends \PHPUnit_Framework_TestCase
class AgreementTransactionTest extends TestCase
{
/**
* Gets Json String of Object AgreementTransaction
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/AgreementTransactionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\AgreementTransactions;
use PHPUnit\Framework\TestCase;

/**
* Class AgreementTransactions
*
* @package PayPal\Test\Api
*/
class AgreementTransactionsTest extends \PHPUnit_Framework_TestCase
class AgreementTransactionsTest extends TestCase
{
/**
* Gets Json String of Object AgreementTransactions
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/AlternatePaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\AlternatePayment;
use PHPUnit\Framework\TestCase;

/**
* Class AlternatePayment
*
* @package PayPal\Test\Api
*/
class AlternatePaymentTest extends \PHPUnit_Framework_TestCase
class AlternatePaymentTest extends TestCase
{
/**
* Gets Json String of Object AlternatePayment
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/AmountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\Amount;
use PHPUnit\Framework\TestCase;

/**
* Class Amount
*
* @package PayPal\Test\Api
*/
class AmountTest extends \PHPUnit_Framework_TestCase
class AmountTest extends TestCase
{
/**
* Gets Json String of Object Amount
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/AuthorizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

use PayPal\Api\Authorization;
use PayPal\Transport\PPRestCall;
use PHPUnit\Framework\TestCase;

/**
* Class Authorization
*
* @package PayPal\Test\Api
*/
class AuthorizationTest extends \PHPUnit_Framework_TestCase
class AuthorizationTest extends TestCase
{
/**
* Gets Json String of Object Authorization
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/BankAccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\BankAccount;
use PHPUnit\Framework\TestCase;

/**
* Class BankAccount
*
* @package PayPal\Test\Api
*/
class BankAccountTest extends \PHPUnit_Framework_TestCase
class BankAccountTest extends TestCase
{
/**
* Gets Json String of Object BankAccount
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/BankAccountsListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\BankAccountsList;
use PHPUnit\Framework\TestCase;

/**
* Class BankAccountsList
*
* @package PayPal\Test\Api
*/
class BankAccountsListTest extends \PHPUnit_Framework_TestCase
class BankAccountsListTest extends TestCase
{
/**
* Gets Json String of Object BankAccountsList
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/BankTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\BankToken;
use PHPUnit\Framework\TestCase;

/**
* Class BankToken
*
* @package PayPal\Test\Api
*/
class BankTokenTest extends \PHPUnit_Framework_TestCase
class BankTokenTest extends TestCase
{
/**
* Gets Json String of Object BankToken
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/BillingInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\BillingInfo;
use PHPUnit\Framework\TestCase;

/**
* Class BillingInfo
*
* @package PayPal\Test\Api
*/
class BillingInfoTest extends \PHPUnit_Framework_TestCase
class BillingInfoTest extends TestCase
{
/**
* Gets Json String of Object BillingInfo
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/BillingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\Billing;
use PHPUnit\Framework\TestCase;

/**
* Class Billing
*
* @package PayPal\Test\Api
*/
class BillingTest extends \PHPUnit_Framework_TestCase
class BillingTest extends TestCase
{
/**
* Gets Json String of Object Billing
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CancelNotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\CancelNotification;
use PHPUnit\Framework\TestCase;

/**
* Class CancelNotification
*
* @package PayPal\Test\Api
*/
class CancelNotificationTest extends \PHPUnit_Framework_TestCase
class CancelNotificationTest extends TestCase
{
/**
* Gets Json String of Object CancelNotification
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CaptureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

use PayPal\Api\Capture;
use PayPal\Transport\PPRestCall;
use PHPUnit\Framework\TestCase;

/**
* Class Capture
*
* @package PayPal\Test\Api
*/
class CaptureTest extends \PHPUnit_Framework_TestCase
class CaptureTest extends TestCase
{
/**
* Gets Json String of Object Capture
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CarrierAccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\CarrierAccount;
use PHPUnit\Framework\TestCase;

/**
* Class CarrierAccount
*
* @package PayPal\Test\Api
*/
class CarrierAccountTest extends \PHPUnit_Framework_TestCase
class CarrierAccountTest extends TestCase
{
/**
* Gets Json String of Object CarrierAccount
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CarrierAccountTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\CarrierAccountToken;
use PHPUnit\Framework\TestCase;

/**
* Class CarrierAccountToken
*
* @package PayPal\Test\Api
*/
class CarrierAccountTokenTest extends \PHPUnit_Framework_TestCase
class CarrierAccountTokenTest extends TestCase
{
/**
* Gets Json String of Object CarrierAccountToken
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CartBaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

use PayPal\Common\PayPalModel;
use PayPal\Api\CartBase;
use PHPUnit\Framework\TestCase;

/**
* Class CartBase
*
* @package PayPal\Test\Api
*/
class CartBaseTest extends \PHPUnit_Framework_TestCase
class CartBaseTest extends TestCase
{
/**
* Gets Json String of Object CartBase
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/ChargeModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\ChargeModel;
use PHPUnit\Framework\TestCase;

/**
* Class ChargeModel
*
* @package PayPal\Test\Api
*/
class ChargeModelTest extends \PHPUnit_Framework_TestCase
class ChargeModelTest extends TestCase
{
/**
* Gets Json String of Object ChargeModels
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CostTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\Cost;
use PHPUnit\Framework\TestCase;

/**
* Class Cost
*
* @package PayPal\Test\Api
*/
class CostTest extends \PHPUnit_Framework_TestCase
class CostTest extends TestCase
{
/**
* Gets Json String of Object Cost
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CountryCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\CountryCode;
use PHPUnit\Framework\TestCase;

/**
* Class CountryCode
*
* @package PayPal\Test\Api
*/
class CountryCodeTest extends \PHPUnit_Framework_TestCase
class CountryCodeTest extends TestCase
{
/**
* Gets Json String of Object CountryCode
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CreateProfileResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\CreateProfileResponse;
use PHPUnit\Framework\TestCase;

/**
* Class CreateProfileResponse
*
* @package PayPal\Test\Api
*/
class CreateProfileResponseTest extends \PHPUnit_Framework_TestCase
class CreateProfileResponseTest extends TestCase
{
/**
* Gets Json String of Object CreateProfileResponse
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CreditCardHistoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

use PayPal\Api\CreditCard;
use PayPal\Api\CreditCardHistory;
use PHPUnit\Framework\TestCase;

class CreditCardHistoryTest extends \PHPUnit_Framework_TestCase
class CreditCardHistoryTest extends TestCase
{

private $cards;
Expand Down
3 changes: 2 additions & 1 deletion tests/PayPal/Test/Api/CreditCardListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace PayPal\Test\Api;

use PayPal\Api\CreditCardList;
use PHPUnit\Framework\TestCase;

/**
* Class CreditCardList
*
* @package PayPal\Test\Api
*/
class CreditCardListTest extends \PHPUnit_Framework_TestCase
class CreditCardListTest extends TestCase
{
/**
* Gets Json String of Object CreditCardList
Expand Down
Loading

0 comments on commit 2c159e4

Please sign in to comment.