This commit is contained in:
2020-03-27 10:13:51 +07:00
commit da1024a5b3
16614 changed files with 3274282 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
<?php
if (!function_exists('verify')) {
/**
* @param $description
* @param null $actual
* @return \Codeception\Verify
*/
function verify($description) {
include_once __DIR__.'/Verify.php';
$reflect = new ReflectionClass('\Codeception\Verify');
return $reflect->newInstanceArgs(func_get_args());
}
function verify_that($truth) {
verify($truth)->notEmpty();
}
function verify_not($fallacy) {
verify($fallacy)->isEmpty();
}
}
if (!function_exists('expect')) {
/**
* @param $description
* @param null $actual
* @return \Codeception\Verify
*/
function expect() {
return call_user_func_array('verify', func_get_args());
}
function expect_that($truth) {
expect($truth)->notEmpty();
}
function expect_not($fallacy) {
expect($fallacy)->isEmpty();
}
}
if (!function_exists('verify_file')) {
/**
* @param $description
* @param null $actual
* @return \Codeception\Verify
*/
function verify_file() {
include_once __DIR__.'/Verify.php';
$reflect = new ReflectionClass('\Codeception\Verify');
$verify = $reflect->newInstanceArgs(func_get_args());
$verify->setIsFileExpectation(true);
return $verify;
}
}
if (!function_exists('expect_file')) {
/**
* @param $description
* @param null $actual
* @return \Codeception\Verify
*/
function expect_file() {
return call_user_func_array('verify_file', func_get_args());
}
}