1 | <?php |
||
16 | class Test |
||
17 | { |
||
18 | /** |
||
19 | * @var ReflectionMethod |
||
20 | */ |
||
21 | private $reflectedTestMethod; |
||
22 | |||
23 | /** |
||
24 | * @var object[] |
||
25 | */ |
||
26 | private $mocks; |
||
27 | |||
28 | /** |
||
29 | * @var Table[] |
||
30 | */ |
||
31 | private $tables; |
||
32 | |||
33 | /** |
||
34 | * Constructor. |
||
35 | * |
||
36 | * @param ReflectionMethod $reflectedTestMethod |
||
37 | */ |
||
38 | 24 | public function __construct(ReflectionMethod $reflectedTestMethod) |
|
42 | |||
43 | /** |
||
44 | * The reflected method of current test. |
||
45 | * |
||
46 | * @return ReflectionMethod |
||
47 | */ |
||
48 | 24 | public function getReflectedTestMethod() |
|
52 | |||
53 | /** |
||
54 | * Returns the list of mock objects associated with the current test. |
||
55 | * |
||
56 | * @param array $constructorArgs |
||
57 | * @return object[] |
||
58 | */ |
||
59 | 3 | public function getMocks(array $constructorArgs = array()) |
|
67 | |||
68 | /** |
||
69 | * Returns the list of database tables associated with the current test. |
||
70 | * |
||
71 | * @return Table[] |
||
72 | */ |
||
73 | 3 | public function getTables() |
|
81 | |||
82 | /** |
||
83 | * @param ReflectionMethod $reflectedTestMethod |
||
84 | */ |
||
85 | 24 | private function setReflectedTestMethod(ReflectionMethod $reflectedTestMethod) |
|
89 | } |
||
90 |