Skip to content

Commit

Permalink
Use Yoast/PHPUnit-Polyfills.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Mar 21, 2023
1 parent 1627e69 commit 461fdd9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@
# Node.js
/node_modules/
/package-lock.json

# PHPUnit
/.phpunit.result.cache
4 changes: 3 additions & 1 deletion tests/src/NumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@

namespace Pronamic\WordPress\Number;

use Yoast\PHPUnitPolyfills\TestCases\TestCase;

/**
* Number Test
*
* @author Remco Tolsma
* @version 1.0.0
* @since 1.0.0
*/
class NumberTest extends \WP_UnitTestCase {
class NumberTest extends TestCase {
/**
* Test add.
*/
Expand Down
8 changes: 4 additions & 4 deletions tests/src/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Pronamic\WordPress\Number;

use WP_UnitTestCase;
use Yoast\PHPUnitPolyfills\TestCases\TestCase;

/**
* Parser
Expand All @@ -19,7 +19,7 @@
* @version 1.2.5
* @since 1.1.0
*/
class ParserTest extends WP_UnitTestCase {
class ParserTest extends TestCase {
/**
* Parser.
*
Expand All @@ -30,8 +30,8 @@ class ParserTest extends WP_UnitTestCase {
/**
* Setup.
*/
public function setUp() {
parent::setUp();
public function set_up() {
parent::set_up();

$this->parser = new Parser();
}
Expand Down

0 comments on commit 461fdd9

Please sign in to comment.