From d98499dbb2f06201a1a2862940bc9a4c4f7150a6 Mon Sep 17 00:00:00 2001 From: Vladimir Bryzgalov Date: Tue, 12 May 2026 17:31:53 +0500 Subject: [PATCH] test(wpmc S2): setup PHPUnit + Brain Monkey + Mockery --- composer.json | 2 ++ phpunit.xml.dist | 20 ++++++++++++++++++++ tests/TestCase.php | 24 ++++++++++++++++++++++++ tests/bootstrap.php | 11 +++++++++++ 4 files changed, 57 insertions(+) create mode 100644 phpunit.xml.dist create mode 100644 tests/TestCase.php create mode 100644 tests/bootstrap.php diff --git a/composer.json b/composer.json index 0360c70..ad0d2c8 100644 --- a/composer.json +++ b/composer.json @@ -7,6 +7,8 @@ "php": ">=8.0" }, "require-dev": { + "brain/monkey": "^2.6", + "mockery/mockery": "^1.6", "phpunit/phpunit": "^9.6" }, "autoload-dev": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..68a5fff --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,20 @@ + + + + + tests + tests/bootstrap.php + tests/TestCase.php + + + diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..1b9e9e0 --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,24 @@ +