_static/snippets/usage-drupal.php
_static/snippets/usage-drush.php
Note, the blackbox driver has no ability to control Drupal, and is provided as a fallback for when some tests can run without such access.
Any testing application should catch unsupported driver exceptions.
_static/snippets/usage-blackbox.php
By using the phpunit/mink project in conjunction with the Drupal Driver, one can use PHPUnit to drive browser sessions and control Drupal.
To install:
_static/snippets/phpunit-composer.json
and then, in the tests directory, a sample test:
_static/snippets/phpunitDrupalDriver.php