File tree 3 files changed +8
-2
lines changed
tests/unit/Codeception/Module
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ sudo: false
12
12
13
13
install :
14
14
- ' [[ -z "$CI_USER_TOKEN" ]] || composer config github-oauth.github.com ${CI_USER_TOKEN};'
15
- - travis_retry composer self-update && composer --version
16
- - travis_retry composer update --prefer-dist --no-interaction
15
+ - COMPOSER_MEMORY_LIMIT=-1 composer self-update && composer --version
16
+ - COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-dist --no-interaction
17
17
- php ./vendor/bin/codecept build
18
18
19
19
script :
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ class Asserts extends CodeceptionModule
29
29
assertNotContains as public ;
30
30
assertRegExp as public ;
31
31
assertNotRegExp as public ;
32
+ assertMatchesRegularExpression as public ;
33
+ assertDoesNotMatchRegularExpression as public ;
32
34
assertEmpty as public ;
33
35
assertNotEmpty as public ;
34
36
assertNull as public ;
@@ -37,6 +39,7 @@ class Asserts extends CodeceptionModule
37
39
assertFalse as public ;
38
40
assertFileExists as public ;
39
41
assertFileNotExists as public ;
42
+ assertFileDoesNotExist as public ;
40
43
assertGreaterOrEquals as public ;
41
44
assertLessOrEquals as public ;
42
45
assertIsEmpty as public ;
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ public function testAsserts()
23
23
$ this ->module ->assertNotSame (1 , '1 ' );
24
24
$ this ->module ->assertRegExp ('/^[\d]$/ ' , '1 ' );
25
25
$ this ->module ->assertNotRegExp ('/^[a-z]$/ ' , '1 ' );
26
+ $ this ->module ->assertMatchesRegularExpression ('/^[\d]$/ ' , '1 ' );
27
+ $ this ->module ->assertDoesNotMatchRegularExpression ('/^[a-z]$/ ' , '1 ' );
26
28
$ this ->module ->assertStringStartsWith ('fo ' , 'foo ' );
27
29
$ this ->module ->assertStringStartsNotWith ('ba ' , 'foo ' );
28
30
$ this ->module ->assertStringEndsWith ('oo ' , 'foo ' );
@@ -43,6 +45,7 @@ public function testAsserts()
43
45
$ this ->module ->assertNotFalse ('foo ' );
44
46
$ this ->module ->assertFileExists (__FILE__ );
45
47
$ this ->module ->assertFileNotExists (__FILE__ . '.notExist ' );
48
+ $ this ->module ->assertFileDoesNotExist (__FILE__ . '.notExist ' );
46
49
$ this ->module ->assertInstanceOf ('Exception ' , new Exception ());
47
50
//assertInternalType is deprecated and will be removed in PHPUnit 9
48
51
//$this->module->assertInternalType('integer', 5);
You can’t perform that action at this time.
0 commit comments