Skip to content

Commit 3ae26b6

Browse files
authored
use luya helpers library, add testsuite 2.0 (#2074)
* use luya helpers library, add testsuite 2.0 * exception * tests * use helper library * not contains * change empty value test * changelog
1 parent a996368 commit 3ae26b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+279
-7527
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Tests
33
on: [push, pull_request]
44

55
env:
6-
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --ignore-platform-reqs"
7-
PHPUNIT_EXCLUDE_GROUP: mssql,oci,wincache,xcache,zenddata,cubrid
6+
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction"
87
CC_TEST_REPORTER_ID: e104088a64c54b2a68debe43e4600b48f53a73441e99449223a9fa08c070cf97
98
jobs:
109

@@ -16,7 +15,7 @@ jobs:
1615
fail-fast: false
1716
matrix:
1817
os: [ubuntu-latest]
19-
php: ['7.1', '7.2', '7.3', '7.4']
18+
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
2019

2120
services:
2221
mysql:
@@ -41,6 +40,7 @@ jobs:
4140
php-version: ${{ matrix.php }}
4241
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached, mysql, pdo, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, sqlite
4342
ini-values: date.timezone='UTC'
43+
coverage: xdebug
4444

4545
## install composer
4646
- name: Install dependencies
@@ -55,7 +55,7 @@ jobs:
5555
## run unit tests
5656
- name: PHP Unit tests for PHP
5757
run: vendor/bin/phpunit --verbose --configuration actions.phpunit.xml
58-
if: matrix.php == '7.4' || matrix.php == '7.3' || matrix.php == '7.2' || matrix.php == '7.0'
58+
if: matrix.php == '8.0' || matrix.php == '7.4' || matrix.php == '7.3' || matrix.php == '7.2' || matrix.php == '7.0'
5959

6060
## unit test with coverage
6161
- name: PHP Unit tests for PHP 7.1

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*~.nib
66
*.launch
77
.DS_Store
8+
composer.lock
89

910
### ECLIPSE
1011
.metadata
@@ -35,5 +36,4 @@ scripts/.sass_log
3536
node_modules/
3637
/repos/
3738
/devconfig.json
38-
3939
luya

composer.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
},
2828
"require":{
2929
"luyadev/luya-composer":"^1.0",
30+
"luyadev/yii-helpers":"^1.0",
3031
"yiisoft/yii2":"~2.0.15",
3132
"curl/curl":"^2.0 || ^1.0",
3233
"phpmailer/phpmailer":"^6.0",
@@ -35,7 +36,7 @@
3536
"giggsey/libphonenumber-for-php":"^8.11"
3637
},
3738
"require-dev":{
38-
"luyadev/luya-testsuite":"^1.0",
39+
"luyadev/luya-testsuite":"^2.0",
3940
"nadar/github-markdown-fixer":"^1.0",
4041
"unglue/client":"^1.5"
4142
},
@@ -49,15 +50,9 @@
4950
"extra":{
5051
"asset-installer-paths":{
5152
"bower-asset-library":"vendor/bower"
52-
},
53-
"branch-alias":{
54-
"dev-master":"1.0.x-dev"
5553
}
5654
},
5755
"config":{
58-
"platform":{
59-
"php":"7.1.3"
60-
},
6156
"fxp-asset":{
6257
"enabled":false
6358
}

0 commit comments

Comments
 (0)