Esempio n. 1
0
<?php

namespace envtests\library;

/**
 * Check XSL support
 *
 * @see http://cz2.php.net/manual/en/book.xsl.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('xsl'), 'XLS library not found');
Esempio n. 2
0
<?php

namespace envtests\library;

/**
 * Check Internationalization Functions is loaded
 *
 * @see http://php.net/manual/en/book.intl.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('intl', 'intl_error_name'), 'intl library not found');
Esempio n. 3
0
<?php

namespace envtests\library;

/**
 * Check GD library is loaded
 *
 * @see http://php.net/manual/en/book.image.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('gd', 'gd_info'), 'GD library not found');
Esempio n. 4
0
<?php

namespace envtests\library;

/**
 * Check Zlib Compression support
 *
 * @see http://cz2.php.net/manual/en/book.zlib.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('zlib', 'gzopen'), 'zlib library not found');
Esempio n. 5
0
 public static function notDisplayErrors()
 {
     Assert::true(Check::ini('display_errors', '0'), 'display_errors is ON !!!');
     return 'display_errors is OFF';
 }
Esempio n. 6
0
<?php

namespace envtests\library;

/**
 * Check if bz2 library is loaded
 *
 * @see http://php.net/manual/en/book.bzip2.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('bz2', 'bzopen'), 'Bzip not found');
Esempio n. 7
0
<?php

namespace envtests\library;

/**
 * Check if tidy is avaliable
 *
 * @see http://php.net/manual/en/book.tidy.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('tidy'), 'Tidy');
echo 'Tidy found';
Esempio n. 8
0
<?php

namespace envtests\library;

/**
 * Check wordProb classes
 *
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::cls('wikidi_webDataSearch_categorizer_wordProb_Client'), 'Class "wikidi_webDataSearch_categorizer_wordProb_Client" not found');
\envtesting\Assert::true(\envtesting\Check::cls('wikidi_webDataSearch_categorizer_wordProb_ClientFactory'), 'Class "wikidi_webDataSearch_categorizer_wordProb_ClientFactory" not found');
Esempio n. 9
0
<?php

namespace envtests\library;

/**
 * Check if Original MySQL API is loaded
 *
 * @see http://php.net/manual/en/book.mysql.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('mysql', 'mysql_info'), 'mysql library not found');
Esempio n. 10
0
<?php

namespace envtests\library;

/**
 * Check if memcache is loaded
 *
 * @see http://php.net/manual/en/book.memcache.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('memcache'), 'memcache library not found');
echo 'memcache found';
Esempio n. 11
0
<?php

namespace envtests\library;

/**
 * Check if Sphinx Client is supported
 *
 * @see http://php.net/manual/en/book.sphinx.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::cls('SphinxClient'), 'SphinxClient class not found');
Esempio n. 12
0
<?php

namespace envtests\library;

/**
 * Check Gettext is loaded
 *
 * @see http://php.net/manual/en/book.gettext.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('gettext', 'gettext'), 'Gettext library not found');
echo 'Gettext found';
Esempio n. 13
0
<?php

namespace envtests\library;

/**
 * Check if curl library is loaded
 *
 * @see http://php.net/manual/en/book.curl.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('curl', 'curl_init'), 'Curl not found');
Esempio n. 14
0
<?php

namespace envtests\library;

/**
 * Check if SimpleXml is supported
 *
 * @see http://php.net/manual/en/book.pdo.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('simplexml'), 'Simplexml library not found');
Esempio n. 15
0
<?php

namespace envtests\library;

/**
 * Check if APC library is loaded
 *
 * @see http://php.net/manual/en/book.apc.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::lib('apc', 'apc_inc'), 'APC not found');
echo 'APC found';
Esempio n. 16
0
<?php

namespace envtests\library;

/**
 * Check if PHP Data Objects (PDO) exists
 *
 * @see http://php.net/manual/en/book.pdo.php
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::cls('PDO'), 'PDO class not found');
echo 'PDO found';
Esempio n. 17
0
<?php

namespace envtests\library;

/**
 * Check if fann server is loaded
 *
 * @author Roman Ozana <*****@*****.**>
 */
\envtesting\Assert::true(\envtesting\Check::cls('fann\\clients\\ServerProxy'), 'Fann class fann\\clients\\ServerProxy not exists');
Esempio n. 18
0
<?php

namespace envtests\library;

/**
 * Check if MongoDB Native Driver is loaded
 *
 * @see http://php.net/manual/en/book.mongo.php
 * @author Roman Ozana <*****@*****.**>
 */
use envtesting\Assert;
use envtesting\Check;
Assert::true(Check::cls('MongoDB'), 'MongoDB class not found');
echo 'mongo found';