-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathclass-test-case.php
More file actions
42 lines (36 loc) · 923 Bytes
/
class-test-case.php
File metadata and controls
42 lines (36 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Test Case for the Plugin's PHP\Integration Tests.
*
* @package KnowTheCode\GitContributing\Tests\PHP\Integration
* @since 1.0.0
* @link https://github.com/KnowTheCode/git-contributing
* @license GPL-3.0+
*/
namespace KnowTheCode\GitContributing\Tests\PHP\Integration;
use Brain\Monkey;
use KnowTheCode\GitContributing\Tests\PHP\Test_Case_Trait;
use WP_UnitTestCase;
/**
* Abstract Class Test_Case
*
* @package KnowTheCode\GitContributing\Tests\PHP\Integration
*/
abstract class Test_Case extends WP_UnitTestCase {
use Test_Case_Trait;
/**
* Prepares the test environment before each test.
*/
public function setUp() {
$this->test_root_dir = get_test_root_dir() . DIRECTORY_SEPARATOR;
parent::setUp();
Monkey\setUp();
}
/**
* Cleans up the test environment after each test.
*/
public function tearDown() {
Monkey\tearDown();
parent::tearDown();
}
}