Conditions | 1 |
Paths | 1 |
Total Lines | 31 |
Code Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function testBuild() |
||
31 | { |
||
32 | $email = '[email protected]'; |
||
33 | $firstName = 'John'; |
||
34 | $lasName = 'Doe'; |
||
35 | |||
36 | $this->customer->expects($this->at(0)) |
||
37 | ->method('getData') |
||
|
|||
38 | ->with('email') |
||
39 | ->willReturn($email); |
||
40 | |||
41 | $this->customer->expects($this->at(1)) |
||
42 | ->method('getData') |
||
43 | ->with('firstname') |
||
44 | ->willReturn($firstName); |
||
45 | |||
46 | $this->customer->expects($this->at(2)) |
||
47 | ->method('getData') |
||
48 | ->with('lastname') |
||
49 | ->willReturn($lasName); |
||
50 | |||
51 | $this->customer->expects($this->exactly(3)) |
||
52 | ->method('getData'); |
||
53 | |||
54 | $this->assertEquals( |
||
55 | [ |
||
56 | 'email' => $email, |
||
57 | 'firstName' => $firstName, |
||
58 | 'lastName' => $lasName |
||
59 | ], |
||
60 | $this->contactRequestBuilder->build($this->customer) |
||
61 | ); |
||
64 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.