-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathbootstrap.php
More file actions
41 lines (35 loc) · 841 Bytes
/
bootstrap.php
File metadata and controls
41 lines (35 loc) · 841 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
<?php
/**
* Bootstraps the Plugin's Unit Tests.
*
* @package KnowTheCode\GitContributing\Tests\PHP\Unit
* @since 1.0.0
* @link https://github.com/KnowTheCode/git-contributing
* @license GNU-2.0+
*/
namespace KnowTheCode\GitContributing\Tests\PHP\Unit;
use function KnowTheCode\GitContributing\Tests\PHP\load_composer_autoloader;
/**
* Gets the unit test's root directory.
*
* @since 1.0.0
*
* @return string
*/
function get_test_root_dir() {
return __DIR__;
}
/**
* Load the test suite's dependencies.
*
* @since 1.0.0
*
* @return void
*/
function load_dependencies() {
require_once dirname( __DIR__ ) . '/functions.php';
load_composer_autoloader();
require_once dirname( __DIR__ ) . '/test-case-trait.php';
require_once get_test_root_dir() . '/class-test-case.php';
}
load_dependencies();