7 .. literalinclude:: _static/snippets/usage-drupal.php
10 :emphasize-lines: 14-15
15 .. literalinclude:: _static/snippets/usage-drush.php
23 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.
25 Any testing application should catch unsupported driver exceptions.
27 .. literalinclude:: _static/snippets/usage-blackbox.php
30 :emphasize-lines: 8,19
32 Practical example with PHPUnit
33 ------------------------------
35 By using the phpunit/mink project in conjunction with the Drupal Driver, one can use PHPUnit to drive browser sessions and control Drupal.
39 .. literalinclude:: _static/snippets/phpunit-composer.json
43 and then, in the tests directory, a sample test:
45 .. literalinclude:: _static/snippets/phpunitDrupalDriver.php