Conditions | 6 |
Paths | 6 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function createExpectation($name, $data) |
||
18 | { |
||
19 | switch (strtolower($name)) { |
||
20 | case 'expectexception': |
||
21 | return new ExceptionExpectation($data); |
||
22 | case 'expectoutput': |
||
23 | return new OutputExpectation(new Regexp($data)); |
||
24 | case 'expectreturntype': |
||
25 | return new ReturnTypeExpectation($data); |
||
26 | case 'expectreturn': |
||
27 | return new ReturnExpectation(new Regexp($data)); |
||
28 | case 'expectnothing': |
||
29 | return new NullExpectation; |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 |