-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from penske-media-corp/feature/image-support
Add image support to Post mocker
- Loading branch information
Showing
56 changed files
with
368 additions
and
83 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,5 +1,13 @@ | ||
<?php | ||
/** | ||
* Base test for unit test. | ||
* | ||
* @package pmc-unit-test | ||
*/ | ||
namespace Examples\Theme\Tests; | ||
|
||
/** | ||
* Class Base. | ||
*/ | ||
abstract class Base extends \PMC\Unit_Test\Base { | ||
} |
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,4 +1,9 @@ | ||
<?php | ||
/** | ||
* Bootstrap for unit test. | ||
* | ||
* @package pmc-unit-test | ||
*/ | ||
|
||
namespace Examples\Theme\Tests; | ||
|
||
|
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 |
---|---|---|
|
@@ -5,12 +5,13 @@ | |
* @author Amit Gupta <[email protected]> | ||
* @since 2019-01-31 | ||
* | ||
* @package pmc-unit-test | ||
*/ | ||
|
||
namespace PMC\Unit_Test; | ||
|
||
/** | ||
* @package pmc-unit-test | ||
* Class Autoloader | ||
*/ | ||
class Autoloader { | ||
|
||
|
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
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 |
---|---|---|
|
@@ -3,13 +3,15 @@ | |
* Utility class with utility methods for Unit Tests | ||
* | ||
* @author Amit Gupta <[email protected]> | ||
* | ||
* @since 2016-12-13 | ||
* @package pmc-unit-test | ||
*/ | ||
|
||
namespace PMC\Unit_Test; | ||
|
||
|
||
/** | ||
* Class Utility. | ||
*/ | ||
class Utility { | ||
|
||
/** | ||
|
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,20 +1,23 @@ | ||
<?php | ||
/** | ||
* Mocker class for WP Requests | ||
* | ||
* @author Hau Vong <[email protected]> | ||
* Mocker class for WP Requests. | ||
* | ||
* We intercept all wp remote call by override the default transport | ||
* by override the hidden static variable \Requests::$transports to this custom class | ||
* | ||
* All mocked method are prefix with "mock_" to prevent potential function name collision with Requests_Transport_cURL | ||
* | ||
* @author Hau Vong <[email protected]> | ||
* @package pmc-unit-test | ||
*/ | ||
|
||
namespace PMC\Unit_Test\Mocks; | ||
|
||
use SimplePie; | ||
|
||
/** | ||
* Class Http. | ||
*/ | ||
class Http | ||
extends \Requests_Transport_cURL | ||
implements \PMC\Unit_Test\Interfaces\Mocker { | ||
|
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
Oops, something went wrong.