Skip to content

Commit 7103961

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: add validator translation 99 for Italian language stop using the deprecated at() PHPUnit matcher Fix typehint phpdoc
2 parents 4788569 + 27360cd commit 7103961

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tests/PropertyAccessorCollectionTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,18 @@ public function testSetValueCallsAdderAndRemoverForNestedCollections()
130130
->method('getStructure')
131131
->willReturn($structure);
132132

133-
$structure->expects($this->at(0))
133+
$structure->expects($this->once())
134134
->method('getAxes')
135135
->willReturn($axesBefore);
136-
$structure->expects($this->at(1))
136+
$structure->expects($this->once())
137137
->method('removeAxis')
138138
->with('fourth');
139-
$structure->expects($this->at(2))
139+
$structure->expects($this->exactly(2))
140140
->method('addAxis')
141-
->with('first');
142-
$structure->expects($this->at(3))
143-
->method('addAxis')
144-
->with('third');
141+
->withConsecutive(
142+
['first'],
143+
['third']
144+
);
145145

146146
$this->propertyAccessor->setValue($car, 'structure.axes', $axesAfter);
147147
}

0 commit comments

Comments
 (0)