| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | class Tester implements TestGuy { |
||
| 27 | use TestGuyMethods; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Specifies what test guy expects from a set of matchers that would be defined next in the |
||
| 31 | * specification. |
||
| 32 | * |
||
| 33 | * @param string $expectation expectation text. |
||
| 34 | * Expectation should be a logical ending of "I expect to ". For example: "see user in the DB". |
||
| 35 | * Such scenario would result in "I expect to see user in the DB" output in console. |
||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | public function expectTo(string $expectation): TestGuy { |
||
| 39 | $this->steps->add('I expect to ' . $expectation); |
||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function __construct(Test $test) { |
||
| 46 | } |
||
| 47 | } |