1 | <?php |
||
16 | class JUnitSession |
||
17 | { |
||
18 | /** |
||
19 | * @var JUnitXmlDocument |
||
20 | */ |
||
21 | private $document; |
||
22 | |||
23 | /** |
||
24 | * @var float |
||
25 | */ |
||
26 | private $starTime; |
||
27 | private $stopTime; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $name; |
||
33 | |||
34 | public function __construct($name) |
||
39 | |||
40 | /** |
||
41 | * getter for JUnitXmlDocument associated wit this session |
||
42 | * |
||
43 | * @return JUnitXmlDocument |
||
44 | */ |
||
45 | public function getDocument() |
||
53 | |||
54 | public function getName() |
||
58 | |||
59 | /** |
||
60 | * @return float |
||
61 | */ |
||
62 | public function getDuration() |
||
70 | |||
71 | /** |
||
72 | * @return TestSuiteElement |
||
73 | */ |
||
74 | public function addTestSuite() |
||
78 | |||
79 | /** |
||
80 | * @param string $path |
||
81 | * @return int|false the number of bytes written or false if an error occured |
||
82 | */ |
||
83 | public function save($path) |
||
91 | } |
||
92 |