Skip to content

Commit 0722fdf

Browse files
alexandre-dauboisnicolas-grekas
authored andcommitted
[Tests] Remove occurrences of withConsecutive()
1 parent bbd4442 commit 0722fdf

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Tests/PropertyAccessorCollectionTestCase.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,18 @@ public function testSetValueCallsAdderAndRemoverForNestedCollections()
138138
$structure->expects($this->once())
139139
->method('removeAxis')
140140
->with('fourth');
141+
141142
$structure->expects($this->exactly(2))
142143
->method('addAxis')
143-
->withConsecutive(
144-
['first'],
145-
['third']
146-
);
144+
->willReturnCallback(function (string $axis) {
145+
static $series = [
146+
'first',
147+
'third',
148+
];
149+
150+
$this->assertSame(array_shift($series), $axis);
151+
})
152+
;
147153

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

0 commit comments

Comments
 (0)