File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
tests/unit/Codeception/Module Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace Codeception \Module ;
3
+
4
+ use Codeception \Module ;
5
+
6
+ /**
7
+ * Special module for using asserts in your tests.
8
+ *
9
+ * Class Asserts
10
+ * @package Codeception\Module
11
+ */
12
+ class Asserts extends Module {
13
+
14
+ use \Codeception \Util \Shared \Asserts {
15
+ assertEquals as public ;
16
+ assertNotEquals as public ;
17
+ assertGreaterThen as public ;
18
+ assertGreaterThenOrEqual as public ;
19
+ assertContains as public ;
20
+ assertNotContains as public ;
21
+ assertEmpty as public ;
22
+ assertNotEmpty as public ;
23
+ assertNull as public ;
24
+ assertNotNull as public ;
25
+ assertTrue as public ;
26
+ assertFalse as public ;
27
+ fail as public ;
28
+ }
29
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ class AssertsTest extends PHPUnit_Framework_TestCase {
3
+
4
+ public function testAsserts ()
5
+ {
6
+ $ module = new \Codeception \Module \Asserts ;
7
+ $ module ->assertEquals (1 ,1 );
8
+ $ module ->assertContains (1 ,[1 ,2 ]);
9
+ }
10
+
11
+ }
12
+
You can’t perform that action at this time.
0 commit comments