<?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');
<?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');
<?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');
<?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');
public static function notDisplayErrors() { Assert::true(Check::ini('display_errors', '0'), 'display_errors is ON !!!'); return 'display_errors is OFF'; }
<?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');
<?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';
<?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');
<?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');
<?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';
<?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');
<?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';
<?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');
<?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');
<?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';
<?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';
<?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');
<?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';