File tree 4 files changed +18
-26
lines changed
4 files changed +18
-26
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ services:
4
4
- mysql
5
5
6
6
php :
7
- - 7.1
8
- - 7.2
9
7
- 7.3
8
+ - 7.4
10
9
- nightly
11
10
12
11
matrix :
Original file line number Diff line number Diff line change 4
4
"description" : " Provide a real database, safe for testing purposes" ,
5
5
"license" : " MIT" ,
6
6
"require" : {
7
- "php" : " >=7.1 " ,
7
+ "php" : " ^7.3 " ,
8
8
"doctrine/orm" : " ^2.5.4"
9
9
},
10
10
"require-dev" : {
11
11
"hostnet/phpcs-tool" : " ^8.3" ,
12
- "phpunit/phpunit" : " ^5.3.2 "
12
+ "phpunit/phpunit" : " ^9.4 "
13
13
},
14
14
"autoload" : {
15
15
"psr-4" : {
Original file line number Diff line number Diff line change 1
- <phpunit
2
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/5.3/phpunit.xsd"
4
- bootstrap =" vendor/autoload.php"
5
- colors =" true"
6
- forceCoversAnnotation =" true"
7
- >
8
-
9
- <testsuites >
10
- <testsuite name =" main" >
11
- <directory >test/</directory >
12
- </testsuite >
13
- </testsuites >
14
-
15
- <filter >
16
- <whitelist >
17
- <directory >src/</directory >
18
- </whitelist >
19
- </filter >
1
+ <?xml version =" 1.0" ?>
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap =" vendor/autoload.php" colors =" true" forceCoversAnnotation =" true" >
3
+ <coverage >
4
+ <include >
5
+ <directory >src/</directory >
6
+ </include >
7
+ </coverage >
8
+ <testsuites >
9
+ <testsuite name =" main" >
10
+ <directory >test/</directory >
11
+ </testsuite >
12
+ </testsuites >
20
13
</phpunit >
Original file line number Diff line number Diff line change 14
14
*/
15
15
class MysqlPersistentConnectionTest extends TestCase
16
16
{
17
- public function testConstruction ()
17
+ public function testConstruction (): void
18
18
{
19
19
$ connection = new MysqlPersistentConnection ();
20
20
$ params = $ connection ->getConnectionParams ();
@@ -28,7 +28,7 @@ public function testConstruction()
28
28
/**
29
29
* @depends testConstruction
30
30
*/
31
- public function testDestruction ()
31
+ public function testDestruction (): void
32
32
{
33
33
$ connection = new MysqlPersistentConnection ();
34
34
$ params = $ connection ->getConnectionParams ();
@@ -57,7 +57,7 @@ public function testDestruction()
57
57
* @return string[]
58
58
* @throws \Doctrine\DBAL\DBALException
59
59
*/
60
- private function listDatabases (array $ params )
60
+ private function listDatabases (array $ params ): array
61
61
{
62
62
$ doctrine = DriverManager::getConnection ($ params );
63
63
$ statement = $ doctrine ->executeQuery ('SHOW DATABASES ' );
You can’t perform that action at this time.
0 commit comments