--TEST--
CLucene: Hits::length.
--SKIPIF--
<?php

require_once('skipif.inc');

?>
--POST--
--GET--
--INI--
--FILE--
<?php

require_once('param.inc');

$searcher = new IndexSearcher($path, $field);
$query = "lorem";
$hits = $searcher->search($query);

$length = $hits->length();
var_dump($length);

?>
--EXPECT--
int(1)
