From e807cd458eb9f7ae7464f33ad835a2f54aa73194 Mon Sep 17 00:00:00 2001 From: Davert Date: Thu, 10 Aug 2017 15:28:02 -0500 Subject: [PATCH] updated changelog, version dump, docs updated --- CHANGELOG-2.3.md | 18 ++++++++ docs/modules/AMQP.md | 10 ----- docs/modules/AngularJS.md | 14 +------ docs/modules/Apc.md | 10 ----- docs/modules/Cli.md | 10 ----- docs/modules/DataFactory.md | 10 ----- docs/modules/Db.md | 10 ----- docs/modules/Doctrine2.md | 10 ----- docs/modules/FTP.md | 10 ----- docs/modules/Facebook.md | 10 ----- docs/modules/Filesystem.md | 10 ----- docs/modules/Laravel5.md | 10 ----- docs/modules/Lumen.md | 10 ----- docs/modules/Memcache.md | 10 ----- docs/modules/MongoDb.md | 10 ----- docs/modules/Phalcon.md | 10 ----- docs/modules/PhpBrowser.md | 10 ----- docs/modules/Queue.md | 10 ----- docs/modules/REST.md | 10 ----- docs/modules/Redis.md | 10 ----- docs/modules/SOAP.md | 10 ----- docs/modules/Sequence.md | 9 ---- docs/modules/Silex.md | 10 ----- docs/modules/Symfony.md | 10 ----- docs/modules/WebDriver.md | 16 ++----- docs/modules/XMLRPC.md | 10 ----- docs/modules/Yii1.md | 10 ----- docs/modules/Yii2.md | 10 ----- docs/modules/ZF1.md | 10 ----- docs/modules/ZF2.md | 10 ----- docs/modules/ZendExpressive.md | 10 ----- docs/reference/Commands.md | 4 +- docs/reference/Locator.md | 20 +++++---- docs/reference/Module.md | 77 +++++++++++++++++++++++++--------- 34 files changed, 95 insertions(+), 333 deletions(-) diff --git a/CHANGELOG-2.3.md b/CHANGELOG-2.3.md index 316a7c9d7d..a8bb924ce8 100644 --- a/CHANGELOG-2.3.md +++ b/CHANGELOG-2.3.md @@ -1,3 +1,21 @@ +#### 2.3.5 + +* Fixed HTML report with unencoded HTML code by @mpgo13. See #3819 #4423 +* Made `assertArraySubset` protected across all modules by @guidocella +* [WebDriver][PhpBrowser][Frameworks] Added support for associative arrays in `seeInFormFields` by @guidocella +* [PhpBrowser][Frameworks] Submit default values of checkboxes. See #4411 by @guidocella +* [PhpBrowser][Frameworks] Make `seeInField` check options' texts and trimmed texts. By @guidocella +* [PhpBrowser] Prevents `submitForm` to submit inputs in disabled fieldsets. Fixes #4426 by @moebrowne +* [PhpBrowser] Fixed `amOnUrl` with empty path component. If path component was empty, it used previous url. Fixes #4383 by @Naktibalda +* [Db] Improved postgres cleanup (recreate schema) by @samusenkoiv +* [Laravel5] Don't duplicate associative array fields on form submission. See #4414 by @guidocella +* [WebDriver] Fixed `webDriver->getCapabilities()` for `facebook/php-webdriver` < 1.3 (could happen on PHP 5.4, 5.5). Fixes #4435 +* [WebDriver] Make `wait` accept fractional amount of seconds to wait for less than a second. By @gvlasov +* [Laravel5] Changing params loader to use `$_SERVER` global instead of `$_ENV`. See #4401 by @EricTendian +* [Mongo] Fixes `haveInCollection` using `__toString`. See #4442 by @samusenkoiv +* Dereferencing vairables for Steps output. Fixes #4402 by @alambe +* [Symfony] Load persistent services before loading profiler. See #4437 by @samusenkoiv + #### 2.3.4 * Added `@prepare` annotation to make realtime configuration for tests in Cest and Test classes. [See documentation](http://codeception.com/docs/06-ModulesAndHelpers#Runtime-Configuration-of-a-Test). diff --git a/docs/modules/AMQP.md b/docs/modules/AMQP.md index c7267bb9b6..4b443a9256 100644 --- a/docs/modules/AMQP.md +++ b/docs/modules/AMQP.md @@ -38,16 +38,6 @@ To use this module with Composer you need "php-amqplib/php-amqplib": "~2.4"< ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### bindQueueToExchange Binds a queue to an exchange diff --git a/docs/modules/AngularJS.md b/docs/modules/AngularJS.md index c6cc8a773a..79b6c33d6f 100644 --- a/docs/modules/AngularJS.md +++ b/docs/modules/AngularJS.md @@ -83,7 +83,7 @@ public function _before(TestInterface $test) $name = $test->getMetadata()->getName(); $this->getModule('WebDriver')->_capabilities(function($currentCapabilities) use ($name) { $currentCapabilities['name'] = $name; - return new DesiredCapabilities($currentCapabilities); + return $currentCapabilities; }); } ``` @@ -326,16 +326,6 @@ $I->appendField('#myTextField', 'appended'); @throws \Codeception\Exception\ElementNotFound -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. @@ -1766,7 +1756,7 @@ Unselect an option in the given select box. Wait for $timeout seconds. - * `param int` $timeout secs + * `param int|float` $timeout secs @throws \Codeception\Exception\TestRuntimeException diff --git a/docs/modules/Apc.md b/docs/modules/Apc.md index 0174acc161..043eb110a5 100644 --- a/docs/modules/Apc.md +++ b/docs/modules/Apc.md @@ -25,16 +25,6 @@ Be sure you don't use the production server to connect. ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### dontSeeInApc Checks item in APC(u) doesn't exist or is the same as expected. diff --git a/docs/modules/Cli.md b/docs/modules/Cli.md index 6e766fa6bd..08cad72157 100644 --- a/docs/modules/Cli.md +++ b/docs/modules/Cli.md @@ -13,16 +13,6 @@ Wrapper for basic shell commands and shell output ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### dontSeeInShellOutput Checks that output from latest command doesn't contain text diff --git a/docs/modules/DataFactory.md b/docs/modules/DataFactory.md index 3ddf425bac..ec9f7900a0 100644 --- a/docs/modules/DataFactory.md +++ b/docs/modules/DataFactory.md @@ -114,16 +114,6 @@ In case your ORM expects a related record itself (Doctrine) then you should use ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### have Generates and saves a record,. diff --git a/docs/modules/Db.md b/docs/modules/Db.md index a297329cea..3174a10184 100644 --- a/docs/modules/Db.md +++ b/docs/modules/Db.md @@ -168,16 +168,6 @@ SELECT COUNT(*) FROM `users` WHERE `name` = 'Davert' AND `email` LIKE 'davert%' ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### dontSeeInDatabase Effect is opposite to ->seeInDatabase diff --git a/docs/modules/Doctrine2.md b/docs/modules/Doctrine2.md index a7a5c037c0..80fb0b8e0e 100644 --- a/docs/modules/Doctrine2.md +++ b/docs/modules/Doctrine2.md @@ -46,16 +46,6 @@ tests will run much faster and will be isolated from each other. ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### dontSeeInRepository Flushes changes to database and performs `findOneBy()` call for current repository. diff --git a/docs/modules/FTP.md b/docs/modules/FTP.md index 5ed36aa325..9f786ad132 100644 --- a/docs/modules/FTP.md +++ b/docs/modules/FTP.md @@ -94,16 +94,6 @@ Enters a directory on the ftp system - FTP root directory is used by default * `param` $path -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### cleanDir Erases directory contents on the FTP/SFTP server diff --git a/docs/modules/Facebook.md b/docs/modules/Facebook.md index ea72bd03e0..3db8e735f3 100644 --- a/docs/modules/Facebook.md +++ b/docs/modules/Facebook.md @@ -75,16 +75,6 @@ $I->see('Welcome, ' . $fbUserFirstName); ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### grabFacebookTestUserAccessToken Returns the test user access token. diff --git a/docs/modules/Filesystem.md b/docs/modules/Filesystem.md index 8c72fb30fa..d0daa5986d 100644 --- a/docs/modules/Filesystem.md +++ b/docs/modules/Filesystem.md @@ -23,16 +23,6 @@ Project root directory is used by default * `param string` $path -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### cleanDir Erases directory contents diff --git a/docs/modules/Laravel5.md b/docs/modules/Laravel5.md index 89ac2a1da8..45b1f941f9 100644 --- a/docs/modules/Laravel5.md +++ b/docs/modules/Laravel5.md @@ -268,16 +268,6 @@ $I->amOnRoute('posts.create'); * `param array` $params -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/Lumen.md b/docs/modules/Lumen.md index 087d566c08..b98b9b50fd 100644 --- a/docs/modules/Lumen.md +++ b/docs/modules/Lumen.md @@ -205,16 +205,6 @@ $I->amOnRoute('homepage'); * `param array` $params -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/Memcache.md b/docs/modules/Memcache.md index 7b7390ea7b..0de9735341 100644 --- a/docs/modules/Memcache.md +++ b/docs/modules/Memcache.md @@ -35,16 +35,6 @@ Be sure you don't use the production server to connect. ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### clearMemcache Flushes all Memcached data. diff --git a/docs/modules/MongoDb.md b/docs/modules/MongoDb.md index 4aaa75e449..a3636f062c 100644 --- a/docs/modules/MongoDb.md +++ b/docs/modules/MongoDb.md @@ -44,16 +44,6 @@ HINT: This module can be used with [Mongofill](https://github.com/mongofill/mong ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### dontSeeInCollection Checks if collection doesn't contain an item. diff --git a/docs/modules/Phalcon.md b/docs/modules/Phalcon.md index 8d12447dfa..9156da290a 100644 --- a/docs/modules/Phalcon.md +++ b/docs/modules/Phalcon.md @@ -244,16 +244,6 @@ $I->amOnRoute('posts.create'); * `param array` $params -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/PhpBrowser.md b/docs/modules/PhpBrowser.md index 9ec44035f3..1e0391b5ef 100644 --- a/docs/modules/PhpBrowser.md +++ b/docs/modules/PhpBrowser.md @@ -242,16 +242,6 @@ $I->amOnPage('/quickstart'); // moves to http://codeception.com/quickstart ``` -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/Queue.md b/docs/modules/Queue.md index 078265d750..84c0f4776e 100644 --- a/docs/modules/Queue.md +++ b/docs/modules/Queue.md @@ -131,16 +131,6 @@ $I->addMessageToQueue('this is a messages', 'default'); * `param string` $queue Queue Name -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### clearQueue Clear all messages of the queue/tube diff --git a/docs/modules/REST.md b/docs/modules/REST.md index 09436b7abc..67826004ec 100644 --- a/docs/modules/REST.md +++ b/docs/modules/REST.md @@ -69,16 +69,6 @@ Adds HTTP authentication via username/password. * `[Part]` xml -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### deleteHeader Deletes the header with the passed name. Subsequent requests diff --git a/docs/modules/Redis.md b/docs/modules/Redis.md index 7e5abe0a80..ba7fbb3415 100644 --- a/docs/modules/Redis.md +++ b/docs/modules/Redis.md @@ -38,16 +38,6 @@ to interact with a Redis server. ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### cleanup Delete all the keys in the Redis database diff --git a/docs/modules/SOAP.md b/docs/modules/SOAP.md index f61ccb3e9f..009e3d58ff 100644 --- a/docs/modules/SOAP.md +++ b/docs/modules/SOAP.md @@ -34,16 +34,6 @@ If you use PHP SoapServer with framework, try to block call to this method in te ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### dontSeeSoapResponseContainsStructure Opposite to `seeSoapResponseContainsStructure` diff --git a/docs/modules/Sequence.md b/docs/modules/Sequence.md index b0d7ef7f28..a4058f6539 100644 --- a/docs/modules/Sequence.md +++ b/docs/modules/Sequence.md @@ -95,13 +95,4 @@ Sequence: ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message -

 

Module reference is taken from the source code. Help us to improve documentation. Edit module reference
diff --git a/docs/modules/Silex.md b/docs/modules/Silex.md index 4e5a53fd25..13c0dcb416 100644 --- a/docs/modules/Silex.md +++ b/docs/modules/Silex.md @@ -184,16 +184,6 @@ $I->amOnPage('/register'); * `param string` $page -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/Symfony.md b/docs/modules/Symfony.md index 9be1b01165..313e92d4ed 100644 --- a/docs/modules/Symfony.md +++ b/docs/modules/Symfony.md @@ -235,16 +235,6 @@ $I->amOnRoute('posts.show', array('id' => 34)); * `param array` $params -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/WebDriver.md b/docs/modules/WebDriver.md index 73b6dcbf86..a6d8801745 100644 --- a/docs/modules/WebDriver.md +++ b/docs/modules/WebDriver.md @@ -11,7 +11,7 @@ To run Selenium Server you need [Java](https://www.java.com/) as well as Chrome 1. Download [Selenium Standalone Server](http://docs.seleniumhq.org/download/) 2. To use Chrome, install [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/getting-started). To use Firefox, install [GeckoDriver](https://github.com/mozilla/geckodriver). -3. Launch the Selenium Server: `java -jar selenium-server-standalone-3.xx.xxx.jar`. Selenium will automatically find the drivers if they are in the PATH or in the current working directory. If you need to specify a different path to the Chromedriver binary, prepend `-Dwebdriver.chrome.driver=./chromedriver` before the -jar option. For Geckodriver use `-Dwebdriver.gecko.driver=./geckodriver`. +3. Launch the Selenium Server: `java -jar selenium-server-standalone-3.xx.xxx.jar`. To locate Chromedriver binary use `-Dwebdriver.chrome.driver=./chromedriver` option. For Geckodriver use `-Dwebdriver.gecko.driver=./geckodriver`. 4. Configure this module (in `acceptance.suite.yml`) by setting `url` and `browser`: ```yaml @@ -280,7 +280,7 @@ public function _before(TestInterface $test) $name = $test->getMetadata()->getName(); $this->getModule('WebDriver')->_capabilities(function($currentCapabilities) use ($name) { $currentCapabilities['name'] = $name; - return new DesiredCapabilities($currentCapabilities); + return $currentCapabilities; }); } ``` @@ -510,16 +510,6 @@ $I->appendField('#myTextField', 'appended'); @throws \Codeception\Exception\ElementNotFound -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. @@ -1950,7 +1940,7 @@ Unselect an option in the given select box. Wait for $timeout seconds. - * `param int` $timeout secs + * `param int|float` $timeout secs @throws \Codeception\Exception\TestRuntimeException diff --git a/docs/modules/XMLRPC.md b/docs/modules/XMLRPC.md index 9ef8d4976f..15bfb6112c 100644 --- a/docs/modules/XMLRPC.md +++ b/docs/modules/XMLRPC.md @@ -35,16 +35,6 @@ Otherwise sends raw HTTP requests to url via PHPBrowser. ## Actions -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### haveHttpHeader Sets HTTP header diff --git a/docs/modules/Yii1.md b/docs/modules/Yii1.md index aafb0c792d..3ae7943f76 100644 --- a/docs/modules/Yii1.md +++ b/docs/modules/Yii1.md @@ -250,16 +250,6 @@ $I->amOnPage('/register'); * `param string` $page -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/Yii2.md b/docs/modules/Yii2.md index 5b9f17feef..dae82afa99 100644 --- a/docs/modules/Yii2.md +++ b/docs/modules/Yii2.md @@ -283,16 +283,6 @@ $I->amOnRoute('site/view', ['page' => 'about']); -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/ZF1.md b/docs/modules/ZF1.md index d2e51426eb..5e6cfd0114 100644 --- a/docs/modules/ZF1.md +++ b/docs/modules/ZF1.md @@ -214,16 +214,6 @@ $I->amOnRoute('posts.show', array('id' => 34)); * `param array` $params -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/ZF2.md b/docs/modules/ZF2.md index 4dac2dd00e..7b5d8b40d3 100644 --- a/docs/modules/ZF2.md +++ b/docs/modules/ZF2.md @@ -208,16 +208,6 @@ $I->amOnRoute('posts.show', array('id' => 34)); * `param array` $params -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/modules/ZendExpressive.md b/docs/modules/ZendExpressive.md index 5b6de1f692..9efc9feacb 100644 --- a/docs/modules/ZendExpressive.md +++ b/docs/modules/ZendExpressive.md @@ -164,16 +164,6 @@ $I->amOnPage('/register'); * `param string` $page -### assertArraySubset - -Checks that array contains subset. - - * `param array` $subset - * `param array` $array - * `param bool` $strict - * `param string` $message - - ### attachFile Attaches a file relative to the Codeception `_data` directory to the given file upload field. diff --git a/docs/reference/Commands.md b/docs/reference/Commands.md index 63cccf0225..df967ab93f 100644 --- a/docs/reference/Commands.md +++ b/docs/reference/Commands.md @@ -27,7 +27,7 @@ Create new test suite. Requires suite name and actor name ## GherkinSnippets Generates code snippets for matched feature files in a suite. -Code snuppets are expected to be implemtned in Actor or PageOjects +Code snippets are expected to be implemented in Actor or PageObjects Usage: @@ -235,7 +235,7 @@ Generates empty environment configuration file into envs dir: * `codecept g:env firefox` -Required to have `envs` path to be specifed in `codeception.yml` +Required to have `envs` path to be specified in `codeception.yml` diff --git a/docs/reference/Locator.md b/docs/reference/Locator.md index 39fadd89b4..065f7fb510 100644 --- a/docs/reference/Locator.md +++ b/docs/reference/Locator.md @@ -62,7 +62,7 @@ Locator::contains('div[@contenteditable=true]', 'hello world'); * `param` $text * `return` string -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L257) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L274) #### elementAt() @@ -86,7 +86,7 @@ Locator::elementAt('table#grind>tr', -2); // previous than last row * `param int` $position xpath index * `return` mixed -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L283) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L300) #### find() @@ -125,7 +125,7 @@ Locator::firstElement('//table/tr'); * `param` $element * `return` mixed -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L313) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L330) #### href() @@ -155,7 +155,7 @@ Transforms strict locator, \Facebook\WebDriver\WebDriverBy into a string represe * `param` $selector * `return` string -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L346) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L363) #### isCSS() @@ -184,7 +184,7 @@ Checks that a string is valid CSS class * `param` $class * `return` bool -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L235) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L252) #### isID() @@ -195,7 +195,13 @@ Checks that a string is valid CSS ID * `param` $id * `return` bool -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L224) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L241) + +#### isPrecise() + + *public static* isPrecise($locator) + +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L217) #### isXPath() @@ -233,7 +239,7 @@ Locator::lastElement('//table/tr'); * `param` $element * `return` mixed -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L334) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Locator.php#L351) #### option() diff --git a/docs/reference/Module.md b/docs/reference/Module.md index 944363c4b3..2b3d4310e2 100644 --- a/docs/reference/Module.md +++ b/docs/reference/Module.md @@ -231,7 +231,7 @@ public function _beforeSuite($settings = []) { * `param` $actual * `param` $description -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L339) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L363) #### assertArrayNotHasKey() @@ -241,7 +241,20 @@ public function _beforeSuite($settings = []) { * `param` $actual * `param` $description -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L349) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L373) + +#### assertArraySubset() + + *protected* assertArraySubset($subset, $array, $strict = null, $message = null) + +Checks that array contains subset. + + * `param array` $subset + * `param array` $array + * `param bool` $strict + * `param string` $message + +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L386) #### assertContains() @@ -263,7 +276,7 @@ Checks that haystack contains needle * `param` $actual * `param` $description -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L359) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L396) #### assertEmpty() @@ -274,7 +287,7 @@ Checks that variable is empty. * `param` $actual * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L197) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L221) #### assertEquals() @@ -298,7 +311,7 @@ Checks that condition is negative. * `param` $condition * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L252) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L276) #### assertFileExists() @@ -309,7 +322,7 @@ Checks if file exists * `param string` $filename * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L288) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L312) #### assertFileNotExists() @@ -320,7 +333,7 @@ Checks if file doesn't exist * `param string` $filename * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L300) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L324) #### assertGreaterOrEquals() @@ -330,7 +343,7 @@ Checks if file doesn't exist * `param` $actual * `param` $description -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L310) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L334) #### assertGreaterThan() @@ -376,7 +389,7 @@ Checks that actual is greater or equal than expected * `param` $actual * `param` $description -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L369) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L406) #### assertInternalType() @@ -386,7 +399,7 @@ Checks that actual is greater or equal than expected * `param` $actual * `param` $description -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L389) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L426) #### assertIsEmpty() @@ -395,7 +408,7 @@ Checks that actual is greater or equal than expected * `param` $actual * `param` $description -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L329) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L353) #### assertLessOrEquals() @@ -405,7 +418,7 @@ Checks that actual is greater or equal than expected * `param` $actual * `param` $description -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L320) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L344) #### assertLessThan() @@ -458,7 +471,7 @@ Checks that variable is not empty. * `param` $actual * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L208) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L232) #### assertNotEquals() @@ -481,7 +494,7 @@ Checks that two variables are not equal * `param` $actual * `param` $description -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L379) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L416) #### assertNotNull() @@ -492,7 +505,7 @@ Checks that variable is not NULL * `param` $actual * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L230) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L254) #### assertNotRegExp() @@ -527,7 +540,7 @@ Checks that variable is NULL * `param` $actual * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L219) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L243) #### assertRegExp() @@ -553,6 +566,30 @@ Checks that two variables are same [See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L60) +#### assertStringStartsNotWith() + + *protected* assertStringStartsNotWith($prefix, $string, $message = null) + +Checks that a string doesn't start with the given prefix. + + * `param string` $prefix + * `param string` $string + * `param string` $message + +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L209) + +#### assertStringStartsWith() + + *protected* assertStringStartsWith($prefix, $string, $message = null) + +Checks that a string starts with the given prefix. + + * `param string` $prefix + * `param string` $string + * `param string` $message + +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L197) + #### assertThat() *protected* assertThat($haystack, $constraint, $message = null) @@ -562,7 +599,7 @@ Checks that two variables are same * `param` $constraint * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L263) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L287) #### assertThatItsNot() @@ -574,7 +611,7 @@ Checks that haystack doesn't attend * `param` $constraint * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L275) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L299) #### assertTrue() @@ -585,7 +622,7 @@ Checks that condition is positive. * `param` $condition * `param string` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L241) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L265) #### debug() @@ -616,7 +653,7 @@ Fails the test with message. * `param` $message -[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L399) +[See source](https://github.com/Codeception/Codeception/blob/2.3/src/Codeception/Util/Shared/Asserts.php#L436) #### getModule()