1 | <?php |
||
13 | class TestSuite |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | public $name; |
||
19 | |||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | public $tests; |
||
24 | |||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | public $assertions; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | public $failures; |
||
34 | |||
35 | /** |
||
36 | * @var int |
||
37 | */ |
||
38 | public $errors; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | public $time; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | public $file; |
||
49 | |||
50 | /** |
||
51 | * Nested suites |
||
52 | * |
||
53 | * @var array |
||
54 | */ |
||
55 | public $suites = array(); |
||
56 | |||
57 | /** |
||
58 | * Cases belonging to this suite |
||
59 | * |
||
60 | * @var array |
||
61 | */ |
||
62 | public $cases = array(); |
||
63 | |||
64 | 51 | public function __construct( |
|
81 | |||
82 | /** |
||
83 | * Create a TestSuite from an associative |
||
84 | * array |
||
85 | * |
||
86 | * @param $arr |
||
87 | * @return TestSuite |
||
88 | */ |
||
89 | 41 | public static function suiteFromArray($arr) |
|
101 | |||
102 | /** |
||
103 | * Create a TestSuite from a SimpleXMLElement |
||
104 | * |
||
105 | * @param \SimpleXMLElement $node |
||
106 | * @return TestSuite |
||
107 | */ |
||
108 | 51 | public static function suiteFromNode(\SimpleXMLElement $node) |
|
120 | } |
||
121 |