<?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 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 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 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 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';