public function FileProfilerStorageTest::testReadLineFromFile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/Profiler/FileProfilerStorageTest.php \Symfony\Component\HttpKernel\Tests\Profiler\FileProfilerStorageTest::testReadLineFromFile()
File
- vendor/
symfony/ http-kernel/ Tests/ Profiler/ FileProfilerStorageTest.php, line 86
Class
Namespace
Symfony\Component\HttpKernel\Tests\ProfilerCode
public function testReadLineFromFile() {
$r = new \ReflectionMethod(self::$storage, 'readLineFromFile');
$r
->setAccessible(true);
$h = tmpfile();
fwrite($h, "line1\n\n\nline2\n");
fseek($h, 0, SEEK_END);
$this
->assertEquals('line2', $r
->invoke(self::$storage, $h));
$this
->assertEquals('line1', $r
->invoke(self::$storage, $h));
}