-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
34 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?php | ||
<?php | ||
|
||
use GhostIO\Entities\Post; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
/** | ||
* Corresponding Class to test Post class | ||
* @author Enrique <[email protected]> | ||
*/ | ||
class PostTest extends PHPUnit_Framework_TestCase | ||
class PostTest extends TestCase | ||
{ | ||
|
||
protected $post; | ||
|
@@ -18,7 +19,7 @@ protected function setUp() | |
} | ||
|
||
/** | ||
* Just check if the Post has no syntax error | ||
* Just check if the Post has no syntax error | ||
* | ||
* This is just a simple check to make sure your library has no syntax error. This helps you troubleshoot | ||
* any typo before you even use this library in a real project. | ||
|
@@ -44,4 +45,4 @@ public function testPostCanBeReturnedAsJson() | |
$this->assertArrayHasKey('markdown', $post); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?php | ||
<?php | ||
|
||
use GhostIO\Entities\Tag; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
/** | ||
* Corresponding Class to test Tag class | ||
* @author Enrique <[email protected]> | ||
*/ | ||
class TagTest extends PHPUnit_Framework_TestCase | ||
class TagTest extends TestCase | ||
{ | ||
|
||
protected $tag; | ||
|
@@ -18,7 +19,7 @@ protected function setUp() | |
} | ||
|
||
/** | ||
* Just check if the Tag has no syntax error | ||
* Just check if the Tag has no syntax error | ||
* | ||
* This is just a simple check to make sure your library has no syntax error. This helps you troubleshoot | ||
* any typo before you even use this library in a real project. | ||
|
@@ -43,4 +44,4 @@ public function testTagCanBeReturnedAsJson() | |
$this->assertArrayHasKey('slug', $tag); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?php | ||
<?php | ||
|
||
use GhostIO\Entities\User; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
/** | ||
* Corresponding Class to test User class | ||
* @author Enrique <[email protected]> | ||
*/ | ||
class UserTest extends PHPUnit_Framework_TestCase | ||
class UserTest extends TestCase | ||
{ | ||
|
||
protected $user; | ||
|
@@ -18,7 +19,7 @@ protected function setUp() | |
} | ||
|
||
/** | ||
* Just check if the User has no syntax error | ||
* Just check if the User has no syntax error | ||
* | ||
* This is just a simple check to make sure your library has no syntax error. This helps you troubleshoot | ||
* any typo before you even use this library in a real project. | ||
|
@@ -44,4 +45,4 @@ public function testUserCanBeReturnedAsJson() | |
$this->assertArrayHasKey('website', $user); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
namespace GhostIO\Tests\Providers; | ||
|
||
use PHPUnit_Framework_TestCase; | ||
use PHPUnit\Framework\TestCase; | ||
use GhostIO\Providers\PostProvider; | ||
use GhostIO\Tests\Mocks\ResponseDummy; | ||
use GhostIO\Tests\Mocks\ResponseBodyDummy; | ||
|
@@ -11,7 +11,7 @@ | |
* Corresponding Class to test PostProvider class | ||
* @author Enrique <[email protected]> | ||
*/ | ||
class PostProviderTest extends PHPUnit_Framework_TestCase | ||
class PostProviderTest extends TestCase | ||
{ | ||
|
||
protected $provider; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
namespace GhostIO\Tests\Providers; | ||
|
||
use PHPUnit_Framework_TestCase; | ||
use PHPUnit\Framework\TestCase; | ||
use GhostIO\Providers\TagProvider; | ||
use GhostIO\Tests\Mocks\ResponseDummy; | ||
use GhostIO\Tests\Mocks\ResponseBodyDummy; | ||
|
@@ -11,7 +11,7 @@ | |
* Corresponding Class to test TagProvider class | ||
* @author Enrique <[email protected]> | ||
*/ | ||
class TagProviderTest extends PHPUnit_Framework_TestCase | ||
class TagProviderTest extends TestCase | ||
{ | ||
|
||
protected $provider; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
namespace GhostIO\Tests\Providers; | ||
|
||
use PHPUnit_Framework_TestCase; | ||
use PHPUnit\Framework\TestCase; | ||
use GhostIO\Providers\UserProvider; | ||
use GhostIO\Tests\Mocks\ResponseDummy; | ||
use GhostIO\Tests\Mocks\ResponseBodyDummy; | ||
|
@@ -11,7 +11,7 @@ | |
* Corresponding Class to test UserProvider class | ||
* @author Enrique <[email protected]> | ||
*/ | ||
class UserProviderTest extends PHPUnit_Framework_TestCase | ||
class UserProviderTest extends TestCase | ||
{ | ||
|
||
protected $provider; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
namespace GhostIO\Tests\Utils; | ||
|
||
use PHPUnit_Framework_TestCase; | ||
use PHPUnit\Framework\TestCase; | ||
use GhostIO\Utils\Collection; | ||
|
||
/** | ||
* Corresponding Class to test the collections class | ||
* @author Enrique <[email protected]> | ||
*/ | ||
class PostProviderTest extends PHPUnit_Framework_TestCase | ||
class PostProviderTest extends TestCase | ||
{ | ||
|
||
protected $collection; | ||
|