Files
w4rpservices/vendor/ua-parser/uap-php/tests/Util/Logfile/ApacheCommonLogFormatReaderTest.php
T
2019-12-26 05:03:41 +00:00

28 lines
920 B
PHP

<?php
/**
* ua-parser
*
* Copyright (c) 2011-2012 Dave Olsen, http://dmolsen.com
*
* Released under the MIT license
*/
namespace UAParser\Test\Util\Logfile;
use UAParser\Util\Logfile\ApacheCommonLogFormatReader;
class ApacheCommonLogFormatReaderTest extends AbstractReaderTest
{
public function setUp()
{
$this->reader = new ApacheCommonLogFormatReader();
$this->line = <<<EOS
127.0.0.1 - - [20/Nov/2013:04:14:44 +0100] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.19; aggregator:Spinn3r (Spinn3r 3.1); http://spinn3r.com/robot) Gecko/2010040121 Firefox/3.0.19"
EOS;
$this->userAgentString = 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.19; aggregator:Spinn3r (Spinn3r 3.1); http://spinn3r.com/robot) Gecko/2010040121 Firefox/3.0.19';
// Set your example log file
//$this->exampleLogFile = '/var/log/access.log';
}
}