test() публичный Метод

public test ( string $line ) : boolean
$line string
Результат boolean
 /**
  *
  */
 public function testTestNotSuccessFull()
 {
     /** @var \BrowscapPHP\Util\Logfile\ApacheCommonLogFormatReader $reader */
     $reader = $this->getMock('\\BrowscapPHP\\Util\\Logfile\\ApacheCommonLogFormatReader', array('test'), array(), '', false);
     $reader->expects(self::once())->method('test')->will(self::returnValue(false));
     $this->object->addReader($reader);
     self::assertFalse($this->object->test('Test'));
 }
 /**
  *
  */
 public function testTestNotSuccessFull()
 {
     /** @var \BrowscapPHP\Util\Logfile\ApacheCommonLogFormatReader $reader */
     $reader = $this->getMockBuilder(\BrowscapPHP\Util\Logfile\ApacheCommonLogFormatReader::class)->disableOriginalConstructor()->setMethods(['test'])->getMock();
     $reader->expects(self::once())->method('test')->will(self::returnValue(false));
     $this->object->addReader($reader);
     self::assertFalse($this->object->test('Test'));
 }