File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
tests/unit/Codeception/Module Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ sudo: false
1212
1313install :
1414 - ' [[ -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
1717 - php ./vendor/bin/codecept build
1818
1919script :
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ class Asserts extends CodeceptionModule
2929 assertNotContains as public ;
3030 assertRegExp as public ;
3131 assertNotRegExp as public ;
32+ assertMatchesRegularExpression as public ;
33+ assertDoesNotMatchRegularExpression as public ;
3234 assertEmpty as public ;
3335 assertNotEmpty as public ;
3436 assertNull as public ;
@@ -37,6 +39,7 @@ class Asserts extends CodeceptionModule
3739 assertFalse as public ;
3840 assertFileExists as public ;
3941 assertFileNotExists as public ;
42+ assertFileDoesNotExist as public ;
4043 assertGreaterOrEquals as public ;
4144 assertLessOrEquals as public ;
4245 assertIsEmpty as public ;
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ public function testAsserts()
2323 $ this ->module ->assertNotSame (1 , '1 ' );
2424 $ this ->module ->assertRegExp ('/^[\d]$/ ' , '1 ' );
2525 $ this ->module ->assertNotRegExp ('/^[a-z]$/ ' , '1 ' );
26+ $ this ->module ->assertMatchesRegularExpression ('/^[\d]$/ ' , '1 ' );
27+ $ this ->module ->assertDoesNotMatchRegularExpression ('/^[a-z]$/ ' , '1 ' );
2628 $ this ->module ->assertStringStartsWith ('fo ' , 'foo ' );
2729 $ this ->module ->assertStringStartsNotWith ('ba ' , 'foo ' );
2830 $ this ->module ->assertStringEndsWith ('oo ' , 'foo ' );
@@ -43,6 +45,7 @@ public function testAsserts()
4345 $ this ->module ->assertNotFalse ('foo ' );
4446 $ this ->module ->assertFileExists (__FILE__ );
4547 $ this ->module ->assertFileNotExists (__FILE__ . '.notExist ' );
48+ $ this ->module ->assertFileDoesNotExist (__FILE__ . '.notExist ' );
4649 $ this ->module ->assertInstanceOf ('Exception ' , new Exception ());
4750 //assertInternalType is deprecated and will be removed in PHPUnit 9
4851 //$this->module->assertInternalType('integer', 5);
You can’t perform that action at this time.
0 commit comments