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_create
parameter to theBrowserTestCase::getSession
method, which allows to verify if session is already started. - Added the
ISessionStrategy::isFreshSession
method to indicate fact, that previousISessionStrategy::session
call 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
SessionStrategyFactory
andSessionStrategyManager
classes. - (Not a BC break) Some public methods of the
BrowserTestCase
class are protected now. Affected methods:setRemoteCoverageScriptUrl
,setBrowser
,getBrowser
,setSessionStrategy
,getSessionStrategy
,getCollectCodeCoverageInformation
,getRemoteCodeCoverageInformation
. - (Not a BC break) Some protected properties of the
BrowserTestCase
class are private now. Affected properties:sessionStrategyManager
,remoteCoverageHelper
,sessionStrategy
. - Bumped minimal required
Behat/Mink
version to 1.8 (needed afterSessionProxy
class 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-compat
version 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::onTestSuiteEnded
method was called for tests, excluded through the--filter
option 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
goutte
driver.
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
driver
parameter).
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::register
method). - 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::createBrowserConfiguration
method 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
SauceLabsBrowserConfiguration
class now would throw an exception, when supplied driver instance isn't ofSelenium2Driver
class. - 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.