-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInitTestSuite.php
More file actions
executable file
·66 lines (63 loc) · 1.92 KB
/
InitTestSuite.php
File metadata and controls
executable file
·66 lines (63 loc) · 1.92 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* You must change the following values according to your case.
*/
define("VENDOR", "Puzzlout");
define("PACKAGE", "WebIde");
$soureNamespacePrefix = VENDOR . "\\WebIde\\";
$testNamespacePrefix = VENDOR . "\\WebdIde\\Tests";
/**
* NO MODIFICATION ZONE (except if you take responsibility of your actions)
*/
define("ROOT_DIR", dirname(dirname(__FILE__)) . "/" . PACKAGE . "/");
define("TESTING_FILE_TREE", false);
define("SKIP_TEST_CLASSES_GENERATION", false);
define("OVERWRITE_TEST_SUITE", true);
define("TEST_SUITE_VERSION", "v1.1.0");
include_once("vendor/autoload.php");
use Puzzlout\Framework\GeneratorEngine\Core\InitializeTestSuite;
$additionalFilters = array("Views","ClientSide","Templates");
$TestSuite = InitializeTestSuite::init($additionalFilters, $soureNamespacePrefix, $testNamespacePrefix)->processSourceFolder();
?>
<!DOCTYPE html>
<html>
<head>
<title>Test Suite Generation</title>
<style>
* {
margin: 0 !important;
}
p{
padding: 10px 5px;
}
.exists {
font-weight: bold;
background-color: #EECE32;
color: #000;
}
.not-created {
font-weight: bold;
background-color: #CB554A;
color: #FFF;
}
.created {
font-weight: bold;
background-color: #8CC75A;
color: #FFF;
}
.skipped {
background-color: #FFC31E;
color: #1F5AFF;
}
.test-class {
margin-left: 1em;
text-indent: 1em;
}
</style>
</head>
<body>
<h1>Starting generation of testing suite (<?php echo TEST_SUITE_VERSION; ?>)...</h1>
<?php echo $TestSuite->output; ?>
<h1>End of generation.</h1>
</body>
</html>