Skip to content

Commit 6ce6eca

Browse files
committed
Replace TestCase::assertSameArray() with assertEquals()
1 parent 781f460 commit 6ce6eca

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

tests/Integration/QueueTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public function testEmptyStats() : void
262262
*/
263263
public function testStatsPath() : void
264264
{
265-
self::assertSameArray([
265+
self::assertEquals([
266266
'taken' => 1,
267267
'buried' => 2,
268268
'ready' => 3,
@@ -278,7 +278,7 @@ public function testStatsPath() : void
278278
self::assertSame(0, $this->queue->stats('tasks.delayed'));
279279
self::assertSame(6, $this->queue->stats('tasks.total'));
280280

281-
self::assertSameArray([
281+
self::assertEquals([
282282
'ack' => 1,
283283
'delete' => 3,
284284
'take' => 3,

tests/Integration/TestCase.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,4 @@ final protected static function assertTask(Task $task, int $expectedId, string $
111111
self::assertSame($expectedState, $task->getState());
112112
self::assertSame($expectedData, $task->getData());
113113
}
114-
115-
final protected static function assertSameArray(array $expected, array $actual) : void
116-
{
117-
ksort($expected);
118-
ksort($actual);
119-
120-
self::assertSame($expected, $actual);
121-
}
122114
}

0 commit comments

Comments
 (0)