1 | <?php |
||
28 | abstract class AbstractTestSuite extends TestSuite implements IEventDispatcherAware |
||
29 | { |
||
30 | |||
31 | /** |
||
32 | * Event dispatcher. |
||
33 | * |
||
34 | * @var EventDispatcherInterface |
||
35 | */ |
||
36 | private $_eventDispatcher; |
||
37 | |||
38 | /** |
||
39 | * Overriding the default: Selenium suites are always built from a TestCase class. |
||
40 | * |
||
41 | * @var boolean |
||
42 | */ |
||
43 | protected $testCase = true; |
||
44 | |||
45 | /** |
||
46 | * Sets event dispatcher. |
||
47 | * |
||
48 | * @param EventDispatcherInterface $event_dispatcher Event dispatcher. |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | 15 | public function setEventDispatcher(EventDispatcherInterface $event_dispatcher) |
|
56 | |||
57 | /** |
||
58 | * Adds test methods to the suite. |
||
59 | * |
||
60 | * @param string $class_name Test case class name. |
||
61 | * |
||
62 | * @return self |
||
63 | */ |
||
64 | 5 | public function addTestMethods($class_name) |
|
74 | |||
75 | /** |
||
76 | * Sets session strategy manager recursively to all tests. |
||
77 | * |
||
78 | * @param SessionStrategyManager $session_strategy_manager Session strategy manager. |
||
79 | * @param IBrowserConfigurationFactory $browser_configuration_factory Browser configuration factory. |
||
80 | * @param RemoteCoverageHelper $remote_coverage_helper Remote coverage helper. |
||
81 | * @param array $tests Tests to process. |
||
82 | * |
||
83 | * @return self |
||
84 | */ |
||
85 | 5 | public function setTestDependencies( |
|
115 | |||
116 | /** |
||
117 | * Report back suite ending to each it's test. |
||
118 | * |
||
119 | * @param array $tests Tests to process. |
||
120 | * |
||
121 | * @return void |
||
122 | */ |
||
123 | 3 | protected function tearDown(array $tests = null) |
|
139 | |||
140 | /** |
||
141 | * Indicates end of the test suite. |
||
142 | * |
||
143 | * @return void |
||
144 | * |
||
145 | * @codeCoverageIgnore |
||
146 | */ |
||
147 | public function onTestSuiteEnded() |
||
151 | |||
152 | } |
||
153 |