Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cocorine999 committed Apr 27, 2023
1 parent b10584d commit 2dcd6dc
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 7 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@
},
"require-dev": {
"doctrine/dbal": "^3.5.1",
"orchestra/testbench": "^7.6.1 || ^8",
"phpstan/phpstan-mockery": "^1.1",
"phpstan/phpstan-phpunit": "^1.1.1",
"pestphp/pest": "^1.2|^2.0",
"pestphp/pest-plugin-laravel": "^1.0|^2.0",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"nunomaduro/larastan": "^2.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0",
"phpstan/phpstan": "^1.10"
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-mockery": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"orchestra/testbench": "^8.5",
"pestphp/pest": "^2.5",
"pestphp/pest-plugin-laravel": "^2.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down Expand Up @@ -84,7 +84,7 @@
},
"scripts": {
"post-autoload-dump": [
"@php vendor/bin/testbench package:discover"
"@php vendor/bin/testbench package:discover --ansi"
],
"all": [
"composer normalize",
Expand Down
52 changes: 52 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true" convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">

<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<clover outputFile="coverage/phpunit/clover.xml"/>
<html outputDirectory="coverage/phpunit/html" lowUpperBound="35" highLowerBound="70"/>
</report>
</coverage>
<testsuites>
<testsuite name="Laravel Service Repository Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>

<testsuite name="Unit">
<directory suffix="UnitTest.php">./tests/Unit</directory>
</testsuite>

<testsuite name="Feature">
<directory suffix="FeatureTest.php">./tests/Feature</directory>
</testsuite>
</testsuites>
<php>
<env name="DB_CONNECTION" value="testing"/>
<env name="APP_ENV" value="testing"/>
<env name="APP_KEY" value="base64:uYlmYxcuuO7dC34yUn2hQcPu8PnlC98LTyOZg4fNAZU="/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="redis"/>
<env name="MAIL_DRIVER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>

<env name="DB_CONNECTION" value="testbench"/>
<env name="DB_DATABASE" value="main"/>
<!-- <env name="DB_CONNECTION" value="sqlite"/> -->
<!-- <env name="DB_DATABASE" value=":memory:"/> -->

<env name="AWS_DEFAULT_REGION" value="us-west-2"/>
</php>

</phpunit>
16 changes: 16 additions & 0 deletions tests/Feature/FeatureTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace LaravelCoreModule\tests\Feature;

use PHPUnit\Framework\TestCase;

class FeatureTest extends TestCase
{
/**
* A basic test example.
*/
public function test_that_true_is_true(): void
{
$this->assertTrue(true);
}
}
Empty file added tests/Test.php
Empty file.
16 changes: 16 additions & 0 deletions tests/Unit/UnitTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace LaravelCoreModule\tests\Unit;

use PHPUnit\Framework\TestCase;

class UnitTest extends TestCase
{
/**
* A basic test Unit.
*/
public function test_that_true_is_true(): void
{
$this->assertTrue(true);
}
}

0 comments on commit 2dcd6dc

Please sign in to comment.