Skip to content

Commit 616d858

Browse files
committed
Laravel 10 support: refactors + dependencies update
1 parent a4947b1 commit 616d858

File tree

8 files changed

+629
-612
lines changed

8 files changed

+629
-612
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
/vendor
22
composer.lock
3+
4+
.idea
5+
6+
phpunit.xml
7+
.env.testing

composer.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uepg/laravel-sybase",
3-
"description": "Sybase based Eloquent module extension for Laravel 5.x.",
3+
"description": "Sybase based Eloquent module extension for Laravel 10.x",
44
"keywords": [
55
"sybase"
66
],
@@ -20,10 +20,14 @@
2020
"wiki": "https://github.com/uepg/laravel-sybase/wiki"
2121
},
2222
"require": {
23-
"php": "^5.6.4 || ^7.0 || ^8.0",
24-
"doctrine/dbal": "^2.5",
25-
"illuminate/database": "5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*|9.*",
26-
"illuminate/support": "5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*|9.*"
23+
"php": "^8.1",
24+
"doctrine/dbal": "^3.5.1",
25+
"illuminate/database": "^10",
26+
"illuminate/support": "^10",
27+
"ext-pdo": "*"
28+
},
29+
"require-dev": {
30+
"orchestra/testbench": "^8.5"
2731
},
2832
"extra": {
2933
"laravel": {
@@ -39,5 +43,10 @@
3943
"psr-4": {
4044
"Uepg\\LaravelSybase\\": "src/"
4145
}
46+
},
47+
"scripts": {
48+
"post-autoload-dump": [
49+
"@php vendor/bin/testbench package:discover --ansi"
50+
]
4251
}
4352
}

phpunit.xml.dist

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
beStrictAboutTestsThatDoNotTestAnything="false"
4+
colors="true"
5+
processIsolation="false"
6+
stopOnError="false"
7+
stopOnFailure="false"
8+
cacheDirectory=".phpunit.cache"
9+
backupStaticProperties="false">
10+
<testsuites>
11+
<testsuite name="Laravel Sybase Test Suite">
12+
<directory suffix="Test.php">./tests</directory>
13+
</testsuite>
14+
</testsuites>
15+
<php>
16+
<ini name="date.timezone" value="UTC-3" />
17+
<ini name="intl.default_locale" value="C.UTF-8" />
18+
<ini name="memory_limit" value="2048M" />
19+
<env name="DB_CONNECTION" value="testing" />
20+
</php>
21+
</phpunit>

0 commit comments

Comments
 (0)