Downloads
Stars
Version
This package is designed around much of what the integrated package from Jeffery Way. It emulates much of the API from Laravel's existing testing packages for PHP Unit.
Sample .env.seleniumConfig
# Application environment
APP_ENV=testing
# Which browser you'd like to use
BROWSER=chrome
# The base url for the application on your local machine
BASE_URL=http://test.dev
# Whether or not you'd like to boot up a laravel application during your testing
# this is so you can use things like "seeInDatabase"
USE_LARAVEL=true
#If you booted laravel, set this to 1 if you'd like your database connection to be auto migrated
MIGRATE=0
#If you booted laravel, set this to 1 if you'd like your database connection to be auto seeded
SEED=0
#OPTIONAL: You can optionally set the window's witdth and height with these values. Be sure that they are integers
WINDOW_WIDTH=1250
WINDOW_HEIGHT=900
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">app/</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="mysql"/>
<env name="DB_HOST" value="127.0.0.1:33060"/>
<env name="DB_DATABASE" value="yourDatabase" />
<env name="DB_USERNAME" value="homestead" />
<env name="DB_PASSWORD" value="secret" />
</php>
</phpunit>
java -jar /path/to/selenium-server/selenium-server.jar
phpunit tests/acceptance
phpunit tests/acceptance/ExampleTest.php