X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fhttp-kernel%2FTests%2FProfiler%2FProfilerTest.php;fp=vendor%2Fsymfony%2Fhttp-kernel%2FTests%2FProfiler%2FProfilerTest.php;h=b24873d4b29b14ef9edba85a43884ee4b95d9fc3;hp=6b2c57a0761281ccbc0c5845e678d609cd4cea6f;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/symfony/http-kernel/Tests/Profiler/ProfilerTest.php b/vendor/symfony/http-kernel/Tests/Profiler/ProfilerTest.php index 6b2c57a07..b24873d4b 100644 --- a/vendor/symfony/http-kernel/Tests/Profiler/ProfilerTest.php +++ b/vendor/symfony/http-kernel/Tests/Profiler/ProfilerTest.php @@ -17,6 +17,7 @@ use Symfony\Component\HttpKernel\Profiler\FileProfilerStorage; use Symfony\Component\HttpKernel\Profiler\Profiler; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\VarDumper\Cloner\Data; class ProfilerTest extends TestCase { @@ -36,7 +37,7 @@ class ProfilerTest extends TestCase $this->assertSame(204, $profile->getStatusCode()); $this->assertSame('GET', $profile->getMethod()); - $this->assertEquals(array('foo' => 'bar'), $profiler->get('request')->getRequestQuery()->all()); + $this->assertInstanceOf(Data::class, $profiler->get('request')->getRequestQuery()->all()['foo']); } public function testFindWorksWithDates() @@ -60,6 +61,13 @@ class ProfilerTest extends TestCase $this->assertCount(0, $profiler->find(null, null, null, null, 'some string', '')); } + public function testFindWorksWithStatusCode() + { + $profiler = new Profiler($this->storage); + + $this->assertCount(0, $profiler->find(null, null, null, null, null, null, '204')); + } + protected function setUp() { $this->tmp = tempnam(sys_get_temp_dir(), 'sf2_profiler');