File tree Expand file tree Collapse file tree 5 files changed +82
-82
lines changed
tests/webfiori/framework/test/cli Expand file tree Collapse file tree 5 files changed +82
-82
lines changed Original file line number Diff line number Diff line change
1
+ name : Build PHP 8.1
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+ jobs :
9
+ test :
10
+
11
+ services :
12
+ sql.data :
13
+ image : mcr.microsoft.com/mssql/server:2019-latest
14
+ env :
15
+ SA_PASSWORD : ${{ secrets.SA_PASSWORD }}
16
+ ACCEPT_EULA : Y
17
+ MSSQL_PID : Express
18
+ ports :
19
+ - " 1433:1433"
20
+
21
+ steps :
22
+
23
+ - name : Shutdown Ubuntu MySQL
24
+ run : sudo service mysql stop
25
+
26
+ - name : Set up MySQL
27
+ uses :
mirromutth/[email protected]
28
+ with :
29
+ mysql version : ' 5.7'
30
+ mysql database : ' testing_db'
31
+ mysql root password : ${{ secrets.MYSQL_ROOT_PASSWORD }}
32
+ mysql user : ' root'
33
+ mysql password : ${{ secrets.MYSQL_ROOT_PASSWORD }}
34
+
35
+ - name : Wait for MySQL
36
+ run : |
37
+ while ! mysqladmin ping --host=127.0.0.1 --password=${{ secrets.MYSQL_ROOT_PASSWORD }} --silent; do
38
+ sleep 1
39
+ done
40
+
41
+ - name : Setup MSSQL
42
+ run : |
43
+ curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
44
+ curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
45
+ sudo apt update
46
+ sudo apt install mssql-tools18
47
+ /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P ${{ secrets.SA_PASSWORD }} -Q 'create database testing_db' -C
48
+
49
+ - name : Run Tests
50
+
51
+ uses : WebFiori/workflows/.github/workflows/test-php.yaml@main
52
+ with :
53
+ php-version : ' 8.1'
54
+
55
+
56
+ code-coverage :
57
+ name : Coverage
58
+ needs : test
59
+ uses : WebFiori/workflows/.github/workflows/coverage-codecov.yaml@main
60
+ with :
61
+ php-version : ' 8.1'
62
+ coverage-file : ' php-8.1-coverage.xml'
63
+ secrets :
64
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
65
+
66
+
67
+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 23
23
"ext-fileinfo" : " *" ,
24
24
"ext-openssl" : " *" ,
25
25
"webfiori/cache" : " v1.1.0" ,
26
- "webfiori/http" : " v3.6.0 " ,
26
+ "webfiori/http" : " v3.6.1 " ,
27
27
"webfiori/file" : " v1.3.8" ,
28
28
"webfiori/jsonx" : " v3.3.2" ,
29
29
"webfiori/ui" : " v2.6.4" ,
33
33
"webfiori/mailer" : " v1.3.1" ,
34
34
"webfiori/err" : " v1.2.0"
35
35
},
36
- "require-dev" : {},
36
+ "scripts" : {
37
+ "test" : " phpunit --configuration tests/phpunit.xml" ,
38
+ "test-10" : " phpunit --configuration tests/phpunit10.xml"
39
+ },
40
+ "require-dev" : {
41
+ "phpunit/phpunit" : " ^10.0"
42
+ },
37
43
"autoload" : {
38
44
"psr-4" : {
39
45
"webfiori\\ framework\\ " : " webfiori/framework/"
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ public function testAddDBConnection00() {
49
49
''
50
50
]);
51
51
52
-
53
- $ connName = 'db-connection- ' .( count (App:: getConfig ()-> getDBConnections ()) - 1 ) ;
52
+ $ count = count (App:: getConfig ()-> getDBConnections ());
53
+ $ connName = 'db-connection- ' .$ count ;
54
54
$ this ->assertEquals ([
55
55
"What would you like to add? \n" ,
56
56
"0: New database connection. \n" ,
@@ -139,7 +139,8 @@ public function testAddDBConnection02() {
139
139
'add '
140
140
]);
141
141
$ this ->assertEquals (0 , $ runner ->start ());
142
- $ connName = 'db-connection- ' .count (App::getConfig ()->getDBConnections ());
142
+ $ count = count (App::getConfig ()->getDBConnections ());
143
+ $ connName = 'db-connection- ' .($ count );
143
144
$ this ->assertEquals ([
144
145
"What would you like to add? \n" ,
145
146
"0: New database connection. \n" ,
@@ -285,4 +286,5 @@ private function removeClass($classPath) {
285
286
$ file = new File (ROOT_PATH .$ classPath .'.php ' );
286
287
$ file ->remove ();
287
288
}
289
+
288
290
}
Original file line number Diff line number Diff line change @@ -637,7 +637,7 @@ public static function initFrameworkVersionInfo() {
637
637
*
638
638
* @since 2.1
639
639
*/
640
- define ('WF_VERSION ' , '3.0.0-Beta.27 ' );
640
+ define ('WF_VERSION ' , '3.0.0-Beta.28 ' );
641
641
/**
642
642
* A constant that tells the type of framework version.
643
643
*
@@ -653,7 +653,7 @@ public static function initFrameworkVersionInfo() {
653
653
*
654
654
* @since 2.1
655
655
*/
656
- define ('WF_RELEASE_DATE ' , '2025-05-26 ' );
656
+ define ('WF_RELEASE_DATE ' , '2025-08-04 ' );
657
657
}
658
658
659
659
/**
You can’t perform that action at this time.
0 commit comments