Skip to content

Commit d3252b8

Browse files
authored
Merge pull request #79 from danichurras/78-laravel_10_support
78 laravel 10 support
2 parents a4947b1 + 15bdca9 commit d3252b8

13 files changed

+771
-617
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
/vendor
22
composer.lock
3+
4+
.idea
5+
6+
phpunit.xml
7+
.env.testing
8+
/.phpunit.cache/test-results
9+
/.phpunit.result.cache

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ Add the following in the require section of your **composer.json**:
2525
"uepg/laravel-sybase": "~2.0"
2626
```
2727

28+
### Laravel 10.x
29+
30+
```json
31+
"uepg/laravel-sybase": "~3.0"
32+
```
33+
2834
Update the package dependencies executing:
2935

3036
```shell

composer.json

+17-6
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,15 @@
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",
31+
"nunomaduro/collision": "^7.4"
2732
},
2833
"extra": {
2934
"laravel": {
@@ -37,7 +42,13 @@
3742
},
3843
"autoload": {
3944
"psr-4": {
40-
"Uepg\\LaravelSybase\\": "src/"
45+
"Uepg\\LaravelSybase\\": "src/",
46+
"Tests\\": "tests/"
4147
}
48+
},
49+
"scripts": {
50+
"post-autoload-dump": [
51+
"@php vendor/bin/testbench package:discover --ansi"
52+
]
4253
}
4354
}

phpunit.xml.dist

+21
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)