Skip to content

Commit 41e230a

Browse files
committed
[SCA] Minor fixes on tests
1 parent 1e96d6d commit 41e230a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/Event/FilterControllerArgumentsEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ class FilterControllerArgumentsEventTest extends TestCase
1212
public function testFilterControllerArgumentsEvent()
1313
{
1414
$filterController = new FilterControllerArgumentsEvent(new TestHttpKernel(), function () {}, ['test'], new Request(), 1);
15-
$this->assertEquals($filterController->getArguments(), ['test']);
15+
$this->assertEquals(['test'], $filterController->getArguments());
1616
}
1717
}

Tests/Profiler/FileProfilerStorageTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ public function testStoreTime()
205205

206206
$records = $this->storage->find('', '', 3, 'GET', $start, time() + 3 * 60);
207207
$this->assertCount(3, $records, '->find() returns all previously added records');
208-
$this->assertEquals($records[0]['token'], 'time_2', '->find() returns records ordered by time in descendant order');
209-
$this->assertEquals($records[1]['token'], 'time_1', '->find() returns records ordered by time in descendant order');
210-
$this->assertEquals($records[2]['token'], 'time_0', '->find() returns records ordered by time in descendant order');
208+
$this->assertEquals('time_2', $records[0]['token'], '->find() returns records ordered by time in descendant order');
209+
$this->assertEquals('time_1', $records[1]['token'], '->find() returns records ordered by time in descendant order');
210+
$this->assertEquals('time_0', $records[2]['token'], '->find() returns records ordered by time in descendant order');
211211

212212
$records = $this->storage->find('', '', 3, 'GET', $start, time() + 2 * 60);
213213
$this->assertCount(2, $records, '->find() should return only first two of the previously added records');

0 commit comments

Comments
 (0)