File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,17 @@ function it($description, callable $fn = null)
34
34
Context::getInstance ()->addTest ($ description , $ fn );
35
35
}
36
36
37
+ /**
38
+ * Identical to it. Useful for test readability
39
+ *
40
+ * @param $description
41
+ * @param $fn
42
+ */
43
+ function test ($ description , callable $ fn = null )
44
+ {
45
+ it ($ description , $ fn );
46
+ }
47
+
37
48
/**
38
49
* Create a pending suite
39
50
*
@@ -67,6 +78,17 @@ function xit($description, callable $fn = null)
67
78
Context::getInstance ()->addTest ($ description , $ fn , true );
68
79
}
69
80
81
+ /**
82
+ * Create a pending spec
83
+ *
84
+ * @param $description
85
+ * @param callable $fn
86
+ */
87
+ function xtest ($ description , callable $ fn = null )
88
+ {
89
+ xit ($ description , $ fn );
90
+ }
91
+
70
92
/**
71
93
* Create a focused suite
72
94
*
@@ -100,6 +122,17 @@ function fit($description, callable $fn = null)
100
122
Context::getInstance ()->addTest ($ description , $ fn , null , true );
101
123
}
102
124
125
+ /**
126
+ * Create a focused spec
127
+ *
128
+ * @param $description
129
+ * @param callable $fn
130
+ */
131
+ function ftest ($ description , callable $ fn = null )
132
+ {
133
+ fit ($ description , $ fn );
134
+ }
135
+
103
136
/**
104
137
* Add a setup function for all specs in the
105
138
* current suite
You can’t perform that action at this time.
0 commit comments