PHPUnit-Webdriver: 00 - Composer Installs - ran into problem with drupal-extension

 


 

composer.json - phpunit ^7

 

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php composer.phar install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 27 installs, 0 updates, 0 removals
  - Installing sebastian/version (2.0.1): Loading from cache
  - Installing sebastian/resource-operations (2.0.1): Downloading (100%)
  - Installing sebastian/recursion-context (3.0.0): Loading from cache
  - Installing sebastian/object-reflector (1.1.1): Loading from cache
  - Installing sebastian/object-enumerator (3.0.3): Loading from cache
  - Installing sebastian/global-state (2.0.0): Loading from cache
  - Installing sebastian/exporter (3.1.0): Loading from cache
  - Installing sebastian/environment (3.1.0): Loading from cache
  - Installing sebastian/diff (3.0.1): Loading from cache
  - Installing sebastian/comparator (3.0.2): Loading from cache
  - Installing phpunit/php-timer (2.0.0): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/php-file-iterator (2.0.2): Loading from cache
  - Installing theseer/tokenizer (1.1.0): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
  - Installing phpunit/php-token-stream (3.0.1): Downloading (100%)
  - Installing phpunit/php-code-coverage (6.1.4): Downloading (100%)
  - Installing doctrine/instantiator (1.1.0): Loading from cache
  - Installing webmozart/assert (1.3.0): Loading from cache
  - Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
  - Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (4.3.0): Loading from cache
  - Installing phpspec/prophecy (1.8.0): Loading from cache
  - Installing phar-io/version (2.0.1): Loading from cache
  - Installing phar-io/manifest (1.0.3): Loading from cache
  - Installing myclabs/deep-copy (1.8.1): Loading from cache
  - Installing phpunit/phpunit (7.4.4): Downloading (100%)
    Skipped installation of bin phpunit for package phpunit/phpunit: name conflicts with an existing file
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
phpunit/phpunit suggests installing ext-soap (*)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating autoload files

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php C:\cmder\bin\phpunit-7.3.5.phar --bootstrap .\vendor\autoload.php .\tests\EmailTest --testdox
PHPUnit 7.3.5 by Sebastian Bergmann and contributors.

Email
 ✔ Can be created from valid email address
 ✔ Cannot be created from invalid email address
 ✔ Can be used as string

Time: 142 ms, Memory: 8.00MB

OK (3 tests, 3 assertions)


 

composer behat

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php composer.phar require --dev behat/behat
Using version ^3.5 for behat/behat
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 15 installs, 0 updates, 0 removals
  - Installing symfony/polyfill-ctype (v1.10.0): Loading from cache
  - Installing symfony/yaml (v4.1.7): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.10.0): Loading from cache
  - Installing symfony/translation (v4.1.7): Loading from cache
  - Installing symfony/event-dispatcher (v4.1.7): Downloading (100%)
  - Installing psr/container (1.0.0): Loading from cache
  - Installing symfony/dependency-injection (v4.1.7): Downloading (100%)
  - Installing symfony/console (v4.1.7): Loading from cache
  - Installing symfony/filesystem (v4.1.7): Loading from cache
  - Installing symfony/config (v4.1.7): Loading from cache
  - Installing symfony/class-loader (v3.4.18): Loading from cache
  - Installing container-interop/container-interop (1.2.0): Loading from cache
  - Installing behat/transliterator (v1.2.0): Loading from cache
  - Installing behat/gherkin (v4.5.1): Loading from cache
  - Installing behat/behat (v3.5.0): Loading from cache
    Skipped installation of bin bin/behat for package behat/behat: name conflicts with an existing file
symfony/translation suggests installing psr/log-implementation (To use logging capability in translator)
symfony/event-dispatcher suggests installing symfony/http-kernel
symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
symfony/dependency-injection suggests installing symfony/finder (For using double-star glob patterns or when GLOB_BRACE portability is required)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
symfony/console suggests installing psr/log-implementation (For using the console logger)
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
Writing lock file
Generating autoload files

 


phpunit still works

 

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ C:/xampp/htdocs/vendor/bin/phpunit --bootstrap .\vendor\autoload.php .\tests\EmailTest --testdox
PHPUnit 7.4.4 by Sebastian Bergmann and contributors.

Email
 ✔ Can be created from valid email address
 ✔ Cannot be created from invalid email address
 ✔ Can be used as string

Time: 44 ms, Memory: 4.00MB

OK (3 tests, 3 assertions)

 


Facebook/webdriver

 

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php composer.phar require facebook/webdriver
Using version ^1.6 for facebook/webdriver
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Installing symfony/process (v4.1.7): Downloading (100%)
  - Installing facebook/webdriver (1.6.0): Loading from cache
facebook/webdriver suggests installing ext-SimpleXML (For Firefox profile creation)
Writing lock file
Generating autoload files

 

 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php composer.phar install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 18 updates, 0 removals
  - Updating symfony/dependency-injection (v3.4.17 => v3.4.18): Loading from cache
  - Updating symfony/event-dispatcher (v3.4.17 => v3.4.18): Loading from cache
  - Updating symfony/class-loader (v3.4.17 => v3.4.18): Loading from cache
  - Updating symfony/polyfill-ctype (v1.9.0 => v1.10.0): Loading from cache
  - Updating symfony/filesystem (v4.1.6 => v4.1.7): Loading from cache
  - Updating symfony/config (v4.1.6 => v4.1.7): Loading from cache
  - Updating symfony/polyfill-mbstring (v1.9.0 => v1.10.0): Loading from cache
  - Updating symfony/console (v4.1.6 => v4.1.7): Loading from cache
  - Updating symfony/translation (v4.1.6 => v4.1.7): Loading from cache
  - Updating symfony/yaml (v4.1.6 => v4.1.7): Loading from cache
  - Updating symfony/css-selector (v3.4.17 => v3.4.18): Loading from cache
  - Updating symfony/dom-crawler (v4.1.6 => v4.1.7): Loading from cache
  - Updating symfony/browser-kit (v4.1.6 => v4.1.7): Loading from cache
  - Updating symfony/process (v3.4.17 => v3.4.18): Loading from cache
  - Updating symfony/polyfill-iconv (v1.9.0 => v1.10.0): Loading from cache
  - Updating drupal/core-render (8.6.1 => 8.6.3): Loading from cache
  - Updating drupal/core-utility (8.6.1 => 8.6.3): Loading from cache
  - Updating guzzlehttp/guzzle dev-master (3ff39a4 => 51cb906):  Checking out 51cb9063b8
Writing lock file
Generating autoload files

 


PHPUnit --testdox switch not supported for PHPUnit 6.x

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ C:/xampp/htdocs/vendor/bin/phpunit --bootstrap .\vendor\autoload.php .\tests\EmailTest --testdox
PHP Fatal error:  Declaration of PHPUnit\Util\TestDox\CliTestDoxPrinter::addError(PHPUnit\Framework\Test $test, Throwable $t, float $time): void must be compatible with PHPUnit\TextUI\ResultPrinter::addError(PHPUnit\Framework\Test $test, Exception $e, $time) in C:\xampp\htdocs\vendor\phpunit\phpunit\src\Util\TestDox\CliTestDoxPrinter.php on line 27

Fatal error: Declaration of PHPUnit\Util\TestDox\CliTestDoxPrinter::addError(PHPUnit\Framework\Test $test, Throwable $t, float $time): void must be compatible with PHPUnit\TextUI\ResultPrinter::addError(PHPUnit\Framework\Test $test, Exception $e, $time) in C:\xampp\htdocs\vendor\phpunit\phpunit\src\Util\TestDox\CliTestDoxPrinter.php on line 27

 

Same CLI works when using PHPUnit 7.3.5 phar

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php C:\cmder\bin\phpunit-7.3.5.phar --bootstrap .\vendor\autoload.php .\tests\EmailTest --testdox
PHPUnit 7.3.5 by Sebastian Bergmann and contributors.

Email
 ✔ Can be created from valid email address
 ✔ Cannot be created from invalid email address
 ✔ Can be used as string

Time: 156 ms, Memory: 8.00MB

OK (3 tests, 3 assertions)

 

Updating composer.json after wiping composer.lock

 

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php composer.phar info
behat/behat                         v3.5.0             Scenario-oriented BDD framework for PHP 5.3
behat/gherkin                       v4.5.1             Gherkin DSL parser for PHP 5.3
behat/mink                          v1.7.1             Browser controller/emulator abstraction for PHP
behat/mink-browserkit-driver        1.3.3              Symfony2 BrowserKit driver for Mink framework
behat/mink-extension                2.3.1              Mink extension for Behat
behat/mink-goutte-driver            v1.2.1             Goutte driver for Mink framework
behat/mink-selenium2-driver         v1.3.1             Selenium2 (WebDriver) driver for Mink framework
behat/transliterator                v1.2.0             String transliterator
composer/installers                 v1.6.0             A multi-framework Composer library installer
container-interop/container-interop 1.2.0              Promoting the interoperability of container objects ...
doctrine/instantiator               1.1.0              A small, lightweight utility to instantiate objects ...
drupal/core-render                  8.6.3              Renders placeholder variables for HTML and plain-tex...
drupal/core-utility                 8.6.3              Mostly static utility classes for string, xss, array...
drupal/drupal-driver                v1.4.0             A collection of reusable Drupal drivers
drupal/drupal-extension             v3.4.1             Drupal extension for Behat
drush-ops/behat-drush-endpoint      1.0.0              Drush commandfile for use with drupal/drupal-driver.
fabpot/goutte                       v3.2.3             A simple PHP Web Scraper
facebook/webdriver                  1.6.0              A PHP client for Selenium WebDriver
guzzlehttp/guzzle                   dev-master 51cb906 Guzzle is a PHP HTTP client library
guzzlehttp/promises                 v1.3.1             Guzzle promises library
guzzlehttp/psr7                     1.4.2              PSR-7 message implementation that also provides comm...
instaclick/php-webdriver            1.4.5              PHP WebDriver for Selenium 2
myclabs/deep-copy                   1.8.1              Create deep copies (clones) of your objects
paragonie/random_compat             v2.0.17            PHP 5.x polyfill for random_bytes() and random_int()...
phar-io/manifest                    1.0.1              Component for reading phar.io manifest information f...
phar-io/version                     1.0.1              Library for handling version information and constra...
phpdocumentor/reflection-common     1.0.1              Common reflection classes used by phpdocumentor to r...
phpdocumentor/reflection-docblock   4.3.0              With this component, a library can provide support f...
phpdocumentor/type-resolver         0.4.0
phpspec/prophecy                    1.8.0              Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage           5.3.2              Library that provides collection, processing, and re...
phpunit/php-file-iterator           1.4.5              FilterIterator implementation that filters files bas...
phpunit/php-text-template           1.2.1              Simple template engine.
phpunit/php-timer                   1.0.9              Utility class for timing
phpunit/php-token-stream            2.0.2              Wrapper around PHP's tokenizer extension.
phpunit/phpunit                     6.5.13             The PHP Unit Testing framework.

phpunit/phpunit-mock-objects        5.0.10             Mock Object library for PHPUnit
psr/container                       1.0.0              Common Container Interface (PHP FIG PSR-11)
psr/http-message                    1.0.1              Common interface for HTTP messages
sebastian/code-unit-reverse-lookup  1.0.1              Looks up which function or method a line of code bel...
sebastian/comparator                2.1.3              Provides the functionality to compare PHP values for...
sebastian/diff                      2.0.1              Diff implementation
sebastian/environment               3.1.0              Provides functionality to handle HHVM/PHP environments
sebastian/exporter                  3.1.0              Provides the functionality to export PHP variables f...
sebastian/global-state              2.0.0              Snapshotting of global state
sebastian/object-enumerator         3.0.3              Traverses array structures and object graphs to enum...
sebastian/object-reflector          1.1.1              Allows reflection of object attributes, including in...
sebastian/recursion-context         3.0.0              Provides functionality to recursively process PHP va...
sebastian/resource-operations       1.0.0              Provides a list of PHP built-in functions that opera...
sebastian/version                   2.0.1              Library that helps with managing the version number ...
symfony/browser-kit                 v4.1.7             Symfony BrowserKit Component
symfony/class-loader                v3.4.18            Symfony ClassLoader Component
symfony/config                      v4.1.7             Symfony Config Component
symfony/console                     v4.1.7             Symfony Console Component
symfony/css-selector                v3.4.18            Symfony CssSelector Component
symfony/dependency-injection        v3.4.18            Symfony DependencyInjection Component
symfony/dom-crawler                 v4.1.7             Symfony DomCrawler Component
symfony/event-dispatcher            v3.4.18            Symfony EventDispatcher Component
symfony/filesystem                  v4.1.7             Symfony Filesystem Component
symfony/polyfill-ctype              v1.10.0            Symfony polyfill for ctype functions
symfony/polyfill-iconv              v1.10.0            Symfony polyfill for the Iconv extension
symfony/polyfill-mbstring           v1.10.0            Symfony polyfill for the Mbstring extension
symfony/process                     v3.4.18            Symfony Process Component
symfony/translation                 v4.1.7             Symfony Translation Component
symfony/yaml                        v4.1.7             Symfony Yaml Component
theseer/tokenizer                   1.1.0              A small library for converting tokenized PHP source ...
webmozart/assert                    1.3.0              Assertions to validate method input/output with nice...

 


composer info

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php composer.phar info
behat/behat                         v3.5.0  Scenario-oriented BDD framework for PHP 5.3
behat/gherkin                       v4.5.1  Gherkin DSL parser for PHP 5.3
behat/transliterator                v1.2.0  String transliterator
container-interop/container-interop 1.2.0   Promoting the interoperability of container objects (DIC, SL, etc.)
doctrine/instantiator               1.1.0   A small, lightweight utility to instantiate objects in PHP without...
facebook/webdriver                  1.6.0   A PHP client for Selenium WebDriver
myclabs/deep-copy                   1.8.1   Create deep copies (clones) of your objects
phar-io/manifest                    1.0.3   Component for reading phar.io manifest information from a PHP Arch...
phar-io/version                     2.0.1   Library for handling version information and constraints
phpdocumentor/reflection-common     1.0.1   Common reflection classes used by phpdocumentor to reflect the cod...
phpdocumentor/reflection-docblock   4.3.0   With this component, a library can provide support for annotations...
phpdocumentor/type-resolver         0.4.0
phpspec/prophecy                    1.8.0   Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage           6.1.4   Library that provides collection, processing, and rendering functi...
phpunit/php-file-iterator           2.0.2   FilterIterator implementation that filters files based on a list o...
phpunit/php-text-template           1.2.1   Simple template engine.
phpunit/php-timer                   2.0.0   Utility class for timing
phpunit/php-token-stream            3.0.1   Wrapper around PHP's tokenizer extension.
phpunit/phpunit                     7.4.4   The PHP Unit Testing framework.
psr/container                       1.0.0   Common Container Interface (PHP FIG PSR-11)
sebastian/code-unit-reverse-lookup  1.0.1   Looks up which function or method a line of code belongs to
sebastian/comparator                3.0.2   Provides the functionality to compare PHP values for equality
sebastian/diff                      3.0.1   Diff implementation
sebastian/environment               3.1.0   Provides functionality to handle HHVM/PHP environments
sebastian/exporter                  3.1.0   Provides the functionality to export PHP variables for visualization
sebastian/global-state              2.0.0   Snapshotting of global state
sebastian/object-enumerator         3.0.3   Traverses array structures and object graphs to enumerate all refe...
sebastian/object-reflector          1.1.1   Allows reflection of object attributes, including inherited and no...
sebastian/recursion-context         3.0.0   Provides functionality to recursively process PHP variables
sebastian/resource-operations       2.0.1   Provides a list of PHP built-in functions that operate on resources
sebastian/version                   2.0.1   Library that helps with managing the version number of Git-hosted ...
symfony/class-loader                v3.4.18 Symfony ClassLoader Component
symfony/config                      v4.1.7  Symfony Config Component
symfony/console                     v4.1.7  Symfony Console Component
symfony/dependency-injection        v4.1.7  Symfony DependencyInjection Component
symfony/event-dispatcher            v4.1.7  Symfony EventDispatcher Component
symfony/filesystem                  v4.1.7  Symfony Filesystem Component
symfony/polyfill-ctype              v1.10.0 Symfony polyfill for ctype functions
symfony/polyfill-mbstring           v1.10.0 Symfony polyfill for the Mbstring extension
symfony/process                     v4.1.7  Symfony Process Component
symfony/translation                 v4.1.7  Symfony Translation Component
symfony/yaml                        v4.1.7  Symfony Yaml Component
theseer/tokenizer                   1.1.0   A small library for converting tokenized PHP source code into XML ...
webmozart/assert                    1.3.0   Assertions to validate method input/output with nice error messages.

 


composer Behat/Mink

composer require --dev behat/mink

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php composer.phar require --dev behat/mink
Using version ^1.7 for behat/mink
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Installing symfony/css-selector (v3.4.18): Loading from cache
  - Installing behat/mink (v1.7.1): Loading from cache
behat/mink suggests installing behat/mink-browserkit-driver (extremely fast headless driver for Symfony\Kernel-based apps (Sf2, Silex))
behat/mink suggests installing behat/mink-goutte-driver (fast headless driver for any app without JS emulation)
behat/mink suggests installing behat/mink-selenium2-driver (slow, but JS-enabled driver for any app (requires Selenium2))
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
Writing lock file
Generating autoload files


behat/mink-goutte-driver

w:\w\git\behatphpfacebook (develop-phpwebdriver-install-setup -> origin)
λ php composer.phar require behat/mink-goutte-driver
Using version ^1.2 for behat/mink-goutte-driver
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 9 installs, 0 updates, 0 removals
  - Installing guzzlehttp/promises (v1.3.1): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2): Loading from cache
  - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)
  - Installing symfony/dom-crawler (v4.1.7): Loading from cache
  - Installing symfony/browser-kit (v4.1.7): Loading from cache
  - Installing fabpot/goutte (v3.2.3): Loading from cache
  - Installing behat/mink-browserkit-driver (1.3.3): Loading from cache
  - Installing behat/mink-goutte-driver (v1.2.1): Loading from cache
guzzlehttp/guzzle suggests installing psr/log (Required for using the Log middleware)
Writing lock file
Generating autoload files

 


phpunit/mink

https://github.com/minkphp/phpunit-mink