Skip to content

Commit

Permalink
tests support folder
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jul 31, 2024
1 parent 4ab07d3 commit e69b473
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
13 changes: 13 additions & 0 deletions phpunit.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

error_reporting(E_ALL);

$autoloader = __DIR__ . '/vendor/autoload.php';

if (! file_exists($autoloader)) {
echo "Composer autoloader not found: $autoloader" . PHP_EOL;
echo "Please issue 'composer install' and try again." . PHP_EOL;
exit(1);
}

require $autoloader;
19 changes: 19 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="./phpunit.php"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
colors="true"
verbose="true"
processIsolation="true"
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="volt/unit">
<directory>./tests</directory>
</testsuite>
</testsuites>
</phpunit>
Empty file added tests/support/output/.gitkeep
Empty file.

0 comments on commit e69b473

Please sign in to comment.