13 require_once
'PU_testcase_dcp_commonfamily.php';
20 'PU_data_dcp_dsearch.ods'
31 $this->assertTrue((
$doc !== null &&
$doc->isAlive()) , sprintf(
"Could not find document with id '%s'.",
$data[
'doc']));
34 $this->assertNotEmpty(
$err,
"Store of document with id '%s' did not returned an expected error message.",
$data[
'doc']);
35 foreach (
$data[
'expect'] as $re) {
36 $match = preg_match($re,
$err);
37 $this->assertTrue(($match !==
false && $match > 0) , sprintf(
"Error message '%s' did not matched expected '%s'.",
$err, $re));
46 "doc" =>
"DSEARCH_01",
48 "/.* 's_text' .*: expression rationnelle invalide/u"
54 "doc" =>
"DSEARCH_02",
56 "/.* 's_date' .*: horodatage malformé/u"
62 "doc" =>
"DSEARCH_03",
64 "/'s_timestamp' .*: horodatage malformé/u"
70 "doc" =>
"DSEARCH_04",
72 "/parenthèses non équilibrées/u"
testDSearchConstraints($data)
static getCommonImportFile()
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err
requiresCoreParamEquals($paramName, $requiredValue, $markTestIncomplete=true)