1 | <?php |
||
16 | class ErrorTester implements SuiteTester |
||
17 | { |
||
18 | private $baseTester; |
||
19 | private $observers; |
||
20 | private $output; |
||
21 | |||
22 | public function __construct( |
||
31 | |||
32 | /** |
||
33 | * Tests provided suite specifications. |
||
34 | * |
||
35 | * @param Environment $env |
||
36 | * @param SpecificationIterator $iterator |
||
37 | * @param Boolean $skip |
||
38 | * |
||
39 | * @return TestResult |
||
40 | */ |
||
41 | public function test(Environment $env, SpecificationIterator $iterator, $skip) |
||
45 | |||
46 | /** |
||
47 | * Tears down suite after a test. |
||
48 | * |
||
49 | * @param Environment $env |
||
50 | * @param SpecificationIterator $iterator |
||
51 | * @param Boolean $skip |
||
52 | * @param TestResult $result |
||
53 | * |
||
54 | * @return Teardown |
||
55 | */ |
||
56 | public function tearDown(Environment $env, SpecificationIterator $iterator, $skip, TestResult $result) |
||
60 | |||
61 | /** |
||
62 | * Sets up suite for a test. |
||
63 | * |
||
64 | * @param Environment $env |
||
65 | * @param SpecificationIterator $iterator |
||
66 | * @param Boolean $skip |
||
67 | * |
||
68 | * @return Setup |
||
69 | */ |
||
70 | public function setUp(Environment $env, SpecificationIterator $iterator, $skip) |
||
77 | |||
78 | private function turnOffErrorDisplayingIfNotVerbose() |
||
84 | |||
85 | private function registerShutdownFunction() |
||
108 | } |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.