1 | <?php |
||
21 | final class Suite implements SuiteInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $name; |
||
27 | |||
28 | /** |
||
29 | * @var SplPriorityQueue |
||
30 | */ |
||
31 | private $fixtures; |
||
32 | |||
33 | /** |
||
34 | * @var SplPriorityQueue |
||
35 | */ |
||
36 | private $listeners; |
||
37 | |||
38 | /** |
||
39 | * @param string $name |
||
40 | */ |
||
41 | public function __construct($name) |
||
47 | |||
48 | /** |
||
49 | * @param FixtureInterface $fixture |
||
50 | * @param array $options |
||
51 | * @param int $priority |
||
52 | */ |
||
53 | public function addFixture(FixtureInterface $fixture, array $options, $priority = 0) |
||
57 | |||
58 | /** |
||
59 | * @param ListenerInterface $listener |
||
60 | * @param array $options |
||
61 | * @param int $priority |
||
62 | */ |
||
63 | public function addListener(ListenerInterface $listener, array $options, $priority = 0) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function getName() |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function getFixtures() |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function getListeners() |
||
97 | } |
||
98 |