Step 1: Initial commit

This commit is contained in:
Oliver Davies 2020-08-27 20:25:30 +01:00
commit 89bc76af90
6 changed files with 2019 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/vendor/
/*.cache

13
composer.json Normal file
View file

@ -0,0 +1,13 @@
{
"name": "opdavies/ddev-phpunit-command-example",
"description": "An example of adding a custom PHPUnit command to a DDEV project.",
"license": "MIT",
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"require-dev": {
"phpunit/phpunit": "^9.3"
}
}

1975
composer.lock generated Normal file

File diff suppressed because it is too large Load diff

12
phpunit.xml.dist Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>

14
tests/ExampleTest.php Normal file
View file

@ -0,0 +1,14 @@
<?php
namespace App\Tests;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/** @test */
public function it_passes()
{
$this->assertTrue(true);
}
}

3
web/index.php Normal file
View file

@ -0,0 +1,3 @@
<?php
echo 'Hello World!';