This commit is contained in:
Nuno Maduro
2020-05-11 18:38:30 +02:00
commit de2929077b
112 changed files with 6211 additions and 0 deletions

5
stubs/Dataset.php Normal file
View File

@ -0,0 +1,5 @@
<?php
dataset('{dataset_name}', function () {
return ['{dataset_element} A', '{dataset_element} B'];
});

7
stubs/Feature.php Normal file
View File

@ -0,0 +1,7 @@
<?php
it('has {name} page', function () {
$response = $this->get('/{name}');
$response->assertStatus(200);
});

3
stubs/Pest.php Normal file
View File

@ -0,0 +1,3 @@
<?php
uses(Tests\TestCase::class)->in('Feature');

5
stubs/Unit.php Normal file
View File

@ -0,0 +1,5 @@
<?php
test('{name}', function () {
assertTrue(true);
});

21
stubs/phpunit.xml Normal file
View File

@ -0,0 +1,21 @@
<?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/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./app</directory>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</phpunit>