Skip to content

Commit

Permalink
Updated tests configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
toonvandenbos committed Jul 26, 2024
1 parent 6aaa541 commit 3e7cc36
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 18 deletions.
30 changes: 16 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,32 @@
"time",
"conversion"
],
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"Whitecube\\LaravelTimezones\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Whitecube\\LaravelTimezones\\Tests\\": "tests/"
}
},
"authors": [
{
"name": "Whitecube",
"email": "[email protected]"
},
{
"name": "Toon Van den Bos",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.1",
"laravel/framework": "^9|^10|^11.0",
"laravel/framework": "^9|^10|^11",
"nesbot/carbon": "^2.64|^3.0"
},
"autoload": {
"psr-4": {
"Whitecube\\LaravelTimezones\\": "src/",
"Whitecube\\LaravelTimezones\\Tests\\": "tests/"
}
"require-dev": {
"mockery/mockery": "^1.6",
"pestphp/pest": "^2.34"
},
"extra": {
"laravel": {
Expand All @@ -37,10 +43,6 @@
]
}
},
"require-dev": {
"pestphp/pest": "^1.22|^2.34",
"mockery/mockery": "^1.6"
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
Expand Down
4 changes: 1 addition & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory=".phpunit.cache"
>
<testsuites>
<testsuite name="Test Suite">
Expand All @@ -12,7 +11,6 @@
</testsuites>
<source>
<include>
<directory suffix=".php">./app</directory>
<directory suffix=".php">./src</directory>
</include>
</source>
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
|
*/

// uses(Tests\TestCase::class)->in('Feature');
uses(\Whitecube\LaravelTimezones\Tests\TestCase::class)->in('Unit');

/*
|--------------------------------------------------------------------------
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Whitecube\LaravelTimezones\Tests;

use PHPUnit\Framework\TestCase as BaseTestCase;

class TestCase extends BaseTestCase
{
//
}
File renamed without changes.
File renamed without changes.

0 comments on commit 3e7cc36

Please sign in to comment.