Skip to content

Commit c13a0ae

Browse files
committed
Merge pull request #5 from Ragazzo/fix_functions
fixed functions short-cuts
2 parents 2815ecd + a6d3ce5 commit c13a0ae

2 files changed

Lines changed: 0 additions & 34 deletions

File tree

src/Codeception/function.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,6 @@ function verify_not($fallacy) {
2222
}
2323
}
2424

25-
if (!function_exists('v')) {
26-
27-
/**
28-
* @param $description
29-
* @param null $actual
30-
* @return \Codeception\Verify
31-
*/
32-
function v() {
33-
return call_user_func_array('verify', func_get_args());
34-
}
35-
36-
}
37-
3825
if (!function_exists('expect')) {
3926

4027
/**
@@ -43,7 +30,6 @@ function v() {
4330
* @return \Codeception\Verify
4431
*/
4532
function expect() {
46-
include_once __DIR__.'/Verify.php';
4733
return call_user_func_array('verify', func_get_args());
4834
}
4935

@@ -56,17 +42,3 @@ function expect_not($fallacy) {
5642
}
5743

5844
}
59-
60-
if (!function_exists('e')) {
61-
62-
/**
63-
* @param $description
64-
* @param null $actual
65-
* @return \Codeception\Verify
66-
*/
67-
function e() {
68-
return call_user_func_array('verify', func_get_args());
69-
}
70-
71-
}
72-

tests/VerifyTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,4 @@ public function testArrayHasKey()
7171
expect($errors)->hasntKey('body');
7272
}
7373

74-
public function testAliases()
75-
{
76-
v("hello")->equals("hello");
77-
e("hello")->equals("hello");
78-
}
79-
8074
}

0 commit comments

Comments
 (0)