Skip to content

Commit 3e7cc36

Browse files
committed
Updated tests configuration
1 parent 6aaa541 commit 3e7cc36

File tree

6 files changed

+28
-18
lines changed

6 files changed

+28
-18
lines changed

composer.json

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,32 @@
99
"time",
1010
"conversion"
1111
],
12+
"type": "library",
13+
"license": "MIT",
14+
"autoload": {
15+
"psr-4": {
16+
"Whitecube\\LaravelTimezones\\": "src/"
17+
}
18+
},
19+
"autoload-dev": {
20+
"psr-4": {
21+
"Whitecube\\LaravelTimezones\\Tests\\": "tests/"
22+
}
23+
},
1224
"authors": [
13-
{
14-
"name": "Whitecube",
15-
"email": "hello@whitecube.be"
16-
},
1725
{
1826
"name": "Toon Van den Bos",
1927
"email": "toon@whitecube.be"
2028
}
2129
],
2230
"require": {
2331
"php": ">=8.1",
24-
"laravel/framework": "^9|^10|^11.0",
32+
"laravel/framework": "^9|^10|^11",
2533
"nesbot/carbon": "^2.64|^3.0"
2634
},
27-
"autoload": {
28-
"psr-4": {
29-
"Whitecube\\LaravelTimezones\\": "src/",
30-
"Whitecube\\LaravelTimezones\\Tests\\": "tests/"
31-
}
35+
"require-dev": {
36+
"mockery/mockery": "^1.6",
37+
"pestphp/pest": "^2.34"
3238
},
3339
"extra": {
3440
"laravel": {
@@ -37,10 +43,6 @@
3743
]
3844
}
3945
},
40-
"require-dev": {
41-
"pestphp/pest": "^1.22|^2.34",
42-
"mockery/mockery": "^1.6"
43-
},
4446
"config": {
4547
"allow-plugins": {
4648
"pestphp/pest-plugin": true

phpunit.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
colors="true"
6-
cacheDirectory=".phpunit.cache"
76
>
87
<testsuites>
98
<testsuite name="Test Suite">
@@ -12,7 +11,6 @@
1211
</testsuites>
1312
<source>
1413
<include>
15-
<directory suffix=".php">./app</directory>
1614
<directory suffix=".php">./src</directory>
1715
</include>
1816
</source>

tests/Pest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
|
1818
*/
1919

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

2222
/*
2323
|--------------------------------------------------------------------------

tests/TestCase.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Whitecube\LaravelTimezones\Tests;
4+
5+
use PHPUnit\Framework\TestCase as BaseTestCase;
6+
7+
class TestCase extends BaseTestCase
8+
{
9+
//
10+
}
File renamed without changes.

0 commit comments

Comments
 (0)