@@ 50-59 (lines=10) @@ | ||
47 | * |
|
48 | * @return void |
|
49 | */ |
|
50 | public function testConstructorExtractsClassNameFromGivenMethod() |
|
51 | { |
|
52 | $rule = $this->getRuleMock(); |
|
53 | ||
54 | $node = $this->getMethodMock(); |
|
55 | $node->expects($this->once()) |
|
56 | ->method('getParentName'); |
|
57 | ||
58 | new RuleViolation($rule, $node, 'foo'); |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * testConstructorExtractsMethodNameFromGivenMethod |
|
@@ 66-75 (lines=10) @@ | ||
63 | * |
|
64 | * @return void |
|
65 | */ |
|
66 | public function testConstructorExtractsMethodNameFromGivenMethod() |
|
67 | { |
|
68 | $rule = $this->getRuleMock(); |
|
69 | ||
70 | $node = $this->getMethodMock(); |
|
71 | $node->expects($this->once()) |
|
72 | ->method('getName'); |
|
73 | ||
74 | new RuleViolation($rule, $node, 'foo'); |
|
75 | } |
|
76 | } |
|
77 |