-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some PHPUnit deprecated warnings.
- Loading branch information
1 parent
26ed1b3
commit eacd33b
Showing
6 changed files
with
9 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,5 @@ | |
/wp-content/ | ||
|
||
# PHPUnit | ||
/.phpunit.cache/ | ||
/.phpunit.result.cache |
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 |
---|---|---|
|
@@ -68,7 +68,7 @@ public function test_set_and_get( $set_function, $get_function, $value, $expect_ | |
* | ||
* @return array | ||
*/ | ||
public function get_and_set_provider() { | ||
public static function get_and_set_provider() { | ||
$now = new DateTime(); | ||
|
||
return [ | ||
|
@@ -127,7 +127,7 @@ public function test_get( $property, $get_function, $value, $expect_deprecated = | |
* | ||
* @return array | ||
*/ | ||
public function get_provider() { | ||
public static function get_provider() { | ||
return [ | ||
[ 'order_id', 'get_order_id', 1234 ], | ||
[ 'email', 'get_email', '[email protected]' ], | ||
|
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