Skip to content

Commit cb42865

Browse files
committed
Use namespaces for test cases
1 parent e425714 commit cb42865

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+87
-49
lines changed

tests/Authentication/AccessTokenMetadataTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
namespace Facebook\Tests\Authentication;
2525

2626
use Facebook\Authentication\AccessTokenMetadata;
27+
use PHPUnit\Framework\TestCase;
2728

28-
class AccessTokenMetadataTest extends \PHPUnit_Framework_TestCase
29+
class AccessTokenMetadataTest extends TestCase
2930
{
3031

3132
protected $graphResponseData = [

tests/Authentication/AccessTokenTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
namespace Facebook\Tests\Authentication;
2525

2626
use Facebook\Authentication\AccessToken;
27+
use PHPUnit\Framework\TestCase;
2728

28-
class AccessTokenTest extends \PHPUnit_Framework_TestCase
29+
class AccessTokenTest extends TestCase
2930
{
3031

3132
public function testAnAccessTokenCanBeReturnedAsAString()

tests/Authentication/OAuth2ClientTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
use Facebook\Authentication\OAuth2Client;
2929
use Facebook\Authentication\AccessTokenMetadata;
3030
use Facebook\Authentication\AccessToken;
31+
use PHPUnit\Framework\TestCase;
3132

32-
class OAuth2ClientTest extends \PHPUnit_Framework_TestCase
33+
class OAuth2ClientTest extends TestCase
3334
{
3435

3536
/**

tests/Exceptions/FacebookResponseExceptionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
use Facebook\Exceptions\FacebookAuthorizationException;
3434
use Facebook\Exceptions\FacebookClientException;
3535
use Facebook\Exceptions\FacebookOtherException;
36+
use PHPUnit\Framework\TestCase;
3637

37-
class FacebookResponseExceptionTest extends \PHPUnit_Framework_TestCase
38+
class FacebookResponseExceptionTest extends TestCase
3839
{
3940

4041
/**

tests/FacebookAppTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525

2626
use Facebook\FacebookApp;
2727
use Facebook\Authentication\AccessToken;
28+
use PHPUnit\Framework\TestCase;
2829

29-
class FacebookAppTest extends \PHPUnit_Framework_TestCase
30+
class FacebookAppTest extends TestCase
3031
{
3132
/**
3233
* @var FacebookApp

tests/FacebookBatchRequestTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
use Facebook\FacebookRequest;
2828
use Facebook\FacebookBatchRequest;
2929
use Facebook\FileUpload\FacebookFile;
30+
use PHPUnit\Framework\TestCase;
3031

31-
class FacebookBatchRequestTest extends \PHPUnit_Framework_TestCase
32+
class FacebookBatchRequestTest extends TestCase
3233
{
3334
/**
3435
* @var FacebookApp

tests/FacebookBatchResponseTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
use Facebook\FacebookBatchRequest;
3030
use Facebook\FacebookBatchResponse;
3131
use Facebook\GraphNodes\GraphNode;
32+
use PHPUnit\Framework\TestCase;
3233

33-
class FacebookBatchResponseTest extends \PHPUnit_Framework_TestCase
34+
class FacebookBatchResponseTest extends TestCase
3435
{
3536
/**
3637
* @var \Facebook\FacebookApp

tests/FacebookClientTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939
use Facebook\FacebookResponse;
4040
use Facebook\FacebookBatchResponse;
4141
use Facebook\GraphNodes\GraphNode;
42+
use PHPUnit\Framework\TestCase;
4243

43-
class FacebookClientTest extends \PHPUnit_Framework_TestCase
44+
class FacebookClientTest extends TestCase
4445
{
4546
/**
4647
* @var FacebookApp

tests/FacebookRequestTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
use Facebook\FacebookRequest;
2828
use Facebook\FileUpload\FacebookFile;
2929
use Facebook\FileUpload\FacebookVideo;
30+
use PHPUnit\Framework\TestCase;
3031

31-
class FacebookRequestTest extends \PHPUnit_Framework_TestCase
32+
class FacebookRequestTest extends TestCase
3233
{
3334
public function testAnEmptyRequestEntityCanInstantiate()
3435
{

tests/FacebookResponseTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
use Facebook\FacebookResponse;
2929
use Facebook\GraphNodes\GraphNode;
3030
use Facebook\Exceptions\FacebookResponseException;
31+
use PHPUnit\Framework\TestCase;
3132

32-
class FacebookResponseTest extends \PHPUnit_Framework_TestCase
33+
class FacebookResponseTest extends TestCase
3334
{
3435
/**
3536
* @var \Facebook\FacebookRequest

0 commit comments

Comments
 (0)