Skip to content

Commit f4c072e

Browse files
committed
update dependencies
1 parent ab6fb23 commit f4c072e

19 files changed

+55
-30
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: cimg/php:7.1-browsers
5+
- image: cimg/php:7.4-browsers
66
steps:
7+
- run: |
8+
sudo pecl install xdebug-3.1.6
9+
# sudo docker-php-ext-enable xdebug
710
- checkout
811
- run:
912
name: Get latest testspace client

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: shivammathur/setup-php@v2
1212
with:
13-
php-version: 7.1
13+
php-version: 7.4
1414
extensions: sqlite
1515
tools: composer, phpcs, phpmd, phpunit
1616
- uses: actions/checkout@v3

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require-dev": {
3-
"phpunit/phpunit": "4.8.*",
4-
"phpunit/dbunit": ">=1.2",
3+
"phpunit/phpunit": "^7.0",
4+
"phpunit/dbunit": "^4.0",
55
"phpunit/phpcov": "*",
66
"squizlabs/php_codesniffer": "3.*",
77
"phpmd/phpmd" : "@stable"

tests/system/WebTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
*/
55
class WebTest extends PHPUnit_Extensions_SeleniumTestCase
66
{
7-
protected function setUp()
7+
protected function setUp(): void
88
{
9+
parent::setUp();
910
$this->setBrowserUrl('http://localhost');
1011
}
1112

tests/unit/controller/BankAccountControllerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
2+
use PHPUnit\Framework\TestCase;
23
/**
34
* @small
45
*/
5-
class BankAccountControllerTest extends PHPUnit_Framework_TestCase
6+
class BankAccountControllerTest extends TestCase
67
{
78
protected $controller;
89
protected $mapper;
@@ -12,8 +13,9 @@ class BankAccountControllerTest extends PHPUnit_Framework_TestCase
1213
/**
1314
* @covers BankAccountController::__construct
1415
*/
15-
protected function setUp()
16+
protected function setUp(): void
1617
{
18+
parent::setUp();
1719
$this->mapper = $this->getMockBuilder('BankAccountMapper')
1820
->disableOriginalConstructor()
1921
->getMock();

tests/unit/controller/BankAccountListControllerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
2+
use PHPUnit\Framework\TestCase;
23
/**
34
* @small
45
*/
5-
class BankAccountListControllerTest extends PHPUnit_Framework_TestCase
6+
class BankAccountListControllerTest extends TestCase
67
{
78
protected $controller;
89
protected $mapper;
@@ -12,8 +13,9 @@ class BankAccountListControllerTest extends PHPUnit_Framework_TestCase
1213
/**
1314
* @covers BankAccountController::__construct
1415
*/
15-
protected function setUp()
16+
protected function setUp(): void
1617
{
18+
parent::setUp();
1719
$this->mapper = $this->getMockBuilder('BankAccountMapper')
1820
->disableOriginalConstructor()
1921
->getMock();

tests/unit/framework/ControllerFactoryTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<?php
2+
use PHPUnit\Framework\TestCase;
23
/**
34
* @small
45
*/
5-
class ControllerFactoryTest extends PHPUnit_Framework_TestCase
6+
class ControllerFactoryTest extends TestCase
67
{
78
protected $controllerFactory;
89

910
/**
1011
* @covers ControllerFactory::__construct
1112
*/
12-
protected function setUp()
13+
protected function setUp(): void
1314
{
15+
parent::setUp();
1416
$mapper = $this->getMockBuilder('BankAccountMapper')
1517
->disableOriginalConstructor()
1618
->getMock();

tests/unit/framework/FrontControllerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?php
22
require_once 'fixture/TestController.php';
33
require_once 'fixture/TestView.php';
4+
use PHPUnit\Framework\TestCase;
45

56
/**
67
* @medium
78
*/
8-
class FrontControllerTest extends PHPUnit_Framework_TestCase
9+
class FrontControllerTest extends TestCase
910
{
1011
/**
1112
* @covers FrontController::__construct

tests/unit/framework/HashMapTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
2+
use PHPUnit\Framework\TestCase;
23
/**
34
* @small
45
*/
5-
class HashMapTest extends PHPUnit_Framework_TestCase
6+
class HashMapTest extends TestCase
67
{
78
/**
89
* @covers HashMap::get

tests/unit/framework/MapperFactoryTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<?php
2+
use PHPUnit\Framework\TestCase;
23
/**
34
* @small
45
*/
5-
class MapperFactoryTest extends PHPUnit_Framework_TestCase
6+
class MapperFactoryTest extends TestCase
67
{
78
protected $mapperFactory;
89

910
/**
1011
* @covers MapperFactory::__construct
1112
*/
12-
protected function setUp()
13+
protected function setUp(): void
1314
{
15+
parent::setUp();
1416
$this->mapperFactory = new MapperFactory(new PDO('sqlite::memory:'));
1517
}
1618

0 commit comments

Comments
 (0)