mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
first
This commit is contained in:
5
stubs/Dataset.php
Normal file
5
stubs/Dataset.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
dataset('{dataset_name}', function () {
|
||||
return ['{dataset_element} A', '{dataset_element} B'];
|
||||
});
|
||||
7
stubs/Feature.php
Normal file
7
stubs/Feature.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
it('has {name} page', function () {
|
||||
$response = $this->get('/{name}');
|
||||
|
||||
$response->assertStatus(200);
|
||||
});
|
||||
3
stubs/Pest.php
Normal file
3
stubs/Pest.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
uses(Tests\TestCase::class)->in('Feature');
|
||||
5
stubs/Unit.php
Normal file
5
stubs/Unit.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
test('{name}', function () {
|
||||
assertTrue(true);
|
||||
});
|
||||
21
stubs/phpunit.xml
Normal file
21
stubs/phpunit.xml
Normal 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>
|
||||
Reference in New Issue
Block a user