Skip to content
Snippets Groups Projects
Verified Commit 50d4a278 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

refactor: update phpunit setup and example test


Signed-off-by: default avatarBart Jaskulski <bjaskulski@protonmail.com>
parent 866f2500
No related branches found
No related tags found
1 merge request!45update setup
......@@ -2,7 +2,7 @@
backupGlobals="false"
>
<testsuites>
<testsuite>
<testsuite name="Integration">
<directory prefix="test-" suffix=".php">./tests/integration</directory>
</testsuite>
</testsuites>
......
<phpunit bootstrap="tests/unit/bootstrap.php">
<testsuites>
<testsuite>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/unit/</directory>
</testsuite>
</testsuites>
......
......@@ -9,14 +9,14 @@ use WP_Mock\Tools\TestCase;
class ExampleTest extends TestCase {
// private $test_class_under_tests;
public function setUp() {
public function setUp(): void {
WP_Mock::setUp();
// $example = Mockery::mock( class );
// $this->test_class_under_tests =
}
public function tearDown() {
public function tearDown(): void {
WP_Mock::tearDown();
}
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment