Skip to content

Commit 8ee84f9

Browse files
committed
PHPUnit's assertContains() performs strict comparisons now.
1 parent 6451928 commit 8ee84f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/DataCollector/RequestDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testCollect()
5151
$this->assertEquals(['name' => 'foo'], $c->getRouteParams());
5252
$this->assertSame([], $c->getSessionAttributes());
5353
$this->assertSame('en', $c->getLocale());
54-
$this->assertContains(__FILE__, $attributes->get('resource'));
54+
$this->assertContainsEquals(__FILE__, $attributes->get('resource'));
5555
$this->assertSame('stdClass', $attributes->get('object')->getType());
5656

5757
$this->assertInstanceOf('Symfony\Component\HttpFoundation\ParameterBag', $c->getResponseHeaders());

Tests/Profiler/FileProfilerStorageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ public function testStatusCode()
293293

294294
$tokens = $this->storage->find('', '', 10, '');
295295
$this->assertCount(2, $tokens);
296-
$this->assertContains($tokens[0]['status_code'], [200, 404]);
297-
$this->assertContains($tokens[1]['status_code'], [200, 404]);
296+
$this->assertContains((int) $tokens[0]['status_code'], [200, 404]);
297+
$this->assertContains((int) $tokens[1]['status_code'], [200, 404]);
298298
}
299299

300300
public function testMultiRowIndexFile()

0 commit comments

Comments
 (0)