public function AbstractProfilerStorageTest::testStatusCode in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/Profiler/AbstractProfilerStorageTest.php \Symfony\Component\HttpKernel\Tests\Profiler\AbstractProfilerStorageTest::testStatusCode()
File
- vendor/
symfony/ http-kernel/ Tests/ Profiler/ AbstractProfilerStorageTest.php, line 250
Class
Namespace
Symfony\Component\HttpKernel\Tests\ProfilerCode
public function testStatusCode() {
$profile = new Profile('token1');
$profile
->setStatusCode(200);
$this
->getStorage()
->write($profile);
$profile = new Profile('token2');
$profile
->setStatusCode(404);
$this
->getStorage()
->write($profile);
$tokens = $this
->getStorage()
->find('', '', 10, '');
$this
->assertCount(2, $tokens);
$this
->assertContains($tokens[0]['status_code'], array(
200,
404,
));
$this
->assertContains($tokens[1]['status_code'], array(
200,
404,
));
}