示例#1
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');
示例#2
0
文件: Pdo.php 项目: wikidi/envtesting
<?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';
示例#3
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');
示例#4
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');
示例#5
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';