-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis file added. Unittests config file, bootstrap added.
- Loading branch information
1 parent
d31ee0d
commit 336e472
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: php | ||
|
||
php: | ||
- 7.2 | ||
|
||
services: | ||
- docker | ||
|
||
before_install: | ||
- composer self-update | ||
- composer clear-cache | ||
- composer update --no-interaction --no-ansi --no-suggest --optimize-autoloader --prefer-stable | ||
|
||
script: | ||
- composer install | ||
- phpunit --configuration tests/unittests/phpunit.xml tests/unittests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit bootstrap="./Bootstrap.php" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
verbose="true" | ||
colors="false" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="true"> | ||
<testsuite name="Cash Machine Code Challenge"> | ||
<exclude>../../bootstrap</exclude> | ||
</testsuite> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true" addUncoveredFilesFromWhitelist="false"> | ||
<directory suffix=".php">../../src</directory> | ||
</whitelist> | ||
</filter> | ||
<logging> | ||
<log type="coverage-text" target="php://stdout" showOnlySummary="true"/> | ||
<log type="coverage-clover" target="../../reports/phpunit.coverage.xml"/> | ||
<log type="junit" target="../../reports/phpunit.xml" logIncompleteSkipped="false"/> | ||
</logging> | ||
</phpunit> |