Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
// phpcs:disable
/**
* This is the bootstrap file for Unit Tests -- run using composer unit-tests
*/
//Manually include plugin
include_once dirname(__FILE__, 2) . '/caldera-forms-query.php';
/** Translation compatibility */
if (! function_exists('translate')) {
/**
* @param string $text
* @return string mixed
*/
function translate($text)
{
return $text;
}
}
if (! function_exists('__')) {
/**
* @param string $text Text to translate.
* @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings.
* Default 'default'.
* @return string Translated text.
*/
function __($text, $domain = 'default')
{
return translate($text, $domain);
}
}
if ( ! defined( 'ARRAY_A')) {
define('OBJECT', 'OBJECT');
define('object', 'OBJECT');
define('OBJECT_K', 'OBJECT_K');
define('ARRAY_A', 'ARRAY_A');
define('ARRAY_N', 'ARRAY_N');
}