File: 059.solrinputdocument_fieldexists.phpt

package info (click to toggle)
php-solr 2.5.1%2B2.4.0-5%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,868 kB
  • sloc: ansic: 40,022; xml: 2,200; php: 1,987; pascal: 8; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 260 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
SolrInputDocument::fieldExists
--FILE--
<?php

require_once "bootstrap.inc";

$doc = new SolrInputDocument();
$doc->addField('id', 1123);

var_dump($doc->fieldExists('id'));
var_dump($doc->fieldExists('features'));
?>
--EXPECT--
bool(true)
bool(false)