Releases: minkphp/phpunit-mink
Releases · minkphp/phpunit-mink
v2.5.0
v2.4.0
Added
- Specify failed PHPUnit assertion text to the BrowserStack ("reason" field)/SauceLabs("custom-data" field) test.
- Added the
$auto_createparameter to theBrowserTestCase::getSessionmethod, which allows to verify if session is already started. - Added the
ISessionStrategy::isFreshSessionmethod to indicate fact, that previousISessionStrategy::sessioncall has created a new session instead of reusing a previously created one. Can be used to perform a login once per a test case class.
Changed
- Bumped minimum PHP version to 5.6.
- Changed default OS from "Windows 7" to "Windows 10" for BrowserStack/SauceLabs browser configurations.
- Allow using self-signed/invalid SSL certificates during testing on the SauceLabs by default.
- Rewritten library object communication mechanism (the event dispatcher is no longer used). Update any custom session strategy/browser configuration implementations.
- Reduce memory consumption by rewriting
SessionStrategyFactoryandSessionStrategyManagerclasses. - (Not a BC break) Some public methods of the
BrowserTestCaseclass are protected now. Affected methods:setRemoteCoverageScriptUrl,setBrowser,getBrowser,setSessionStrategy,getSessionStrategy,getCollectCodeCoverageInformation,getRemoteCodeCoverageInformation. - (Not a BC break) Some protected properties of the
BrowserTestCaseclass are private now. Affected properties:sessionStrategyManager,remoteCoverageHelper,sessionStrategy. - Bumped minimal required
Behat/Minkversion to 1.8 (needed afterSessionProxyclass removal). - Shared session strategy now also closes popups left over from the previous test before switching back to the main window.
- Bumped minimal required
console-helpers/phpunit-compatversion to 1.0.3 to load classes through the custom autoloader script.
Fixed
- The remote code coverage collection cookies were set even, when the remote code coverage script URL wasn't specified.
- The
BrowserTestCase::onTestSuiteEndedmethod was called for tests, excluded through the--filteroption of the PHPUnit.
v2.3.0
Changed
- Bumped minimum PHPUnit version to 4.8.35 or 5.4.3.
- Added support for PHPUnit 6.x, PHPUnit 7.x, PHPUnit 8.x and PHPUnit 9.x versions.
- Use namespaced class versions of PHPUnit.
- Bumped minimum PHP version to 5.4.7.
- Test case configuration method renamed from "BrowserTestCase::setUp" into "BrowserTestCase::setUpTest".
Fixed
- Fixed "PHP Strict standards" notice when used with PHPUnit 5+.
- Fixed issue with BrowserStack, that caused PHPUnit test result not being reported into the BrowserStack due their API changes.
v2.2.0
Added
- Added support for Guzzle 6 in
gouttedriver.
Changed
- Start sessions only, when somebody requests them.
- Allow using PHPUnit 4.x or PHPUnit 5.x and Symfony 3.0.
- Dependency on Pimple is removed, which allowed library to be used on projects using any of Pimple version (even 1.0) themselves.
v2.1.1
v2.1.0
Added
- Complete integration with BrowserStack (includes tunnel creation).
- Tunnel identifier can be specified through
PHPUNIT_MINK_TUNNEL_ID, when for Sauce Labs or BrowserStack browser configurations are used. - Allow specifying Mink driver to use within browser configuration (the new
driverparameter).
Changed
- Allow library to be used in projects with either Pimple 2.x or Pimple 3.x installed.
- The tunnel isn't automatically created, when using Sauce Labs or BrowserStack browser configuration and running test suite on Travis CI.
Fixed
- The Sauce Labs and BrowserStack unit tests were executed even, when their credentials weren't specified in
phpunit.xml(affects contributors only).
v2.0.1
v2.0.0
Added
- Added support for using custom browser configuration (the
BrowserConfigurationFactory::registermethod). - Adding BrowserStack testing service support (experimental).
- Allow running testing using "Sauce Labs" and "BrowserStack" on Travis CI.
- Allow using SauceConnect (secure tunnel creation to the Sauce Labs servers) on Travis CI, when Sauce Labs browser configuration is used.
- Added support for HHVM.
Changed
- Changed default OS for Sauce Labs/BrowserStack from "Windows XP" to "Windows 7".
Fixed
- Sessions were stopped prematurely, when test suite consisted of tests with different session strategies (e.g. one isolated and one shared).
v1.1.0
Added
- Added
BrowserTestCase::createBrowserConfigurationmethod for creating instance of browser configuration class based on given parameters.
Changed
- Use DIC (dependency injection container) to organize interactions between library modules.
- When unknown parameters are specified during browser configuration creation an exception is thrown.
- The
SauceLabsBrowserConfigurationclass now would throw an exception, when supplied driver instance isn't ofSelenium2Driverclass. - The remote code coverage code made more reusable/testable through usage of OOP approach.
- Allow using both PHPUnit 3.x and PHPUnit 4.x versions.