1--TEST--
2Solr bug #61836 - Extending SolrDocument
3--SKIPIF--
4<?php require_once 'skip.if.server_not_configured.inc'; ?>
5--FILE--
6<?php
7class Model_SolrDocument extends SolrDocument
8{
9	public function addField($fieldName, $fieldValue,$boost=0)
10	{
11		if (is_bool($fieldValue))
12			$fieldValue = ($fieldValue ? '1' : '0');
13		return parent::addField($fieldName, $fieldValue);
14	}
15}
16
17$doc = new Model_SolrDocument();
18//$doc->addField('testname', true);
19?>
20--EXPECTF--
21Fatal error: Class Model_SolrDocument may not inherit from final class (SolrDocument) in %s on line %d