Skip to content

Commit

Permalink
Merge pull request #30 from donquixote/issue-28-phpunit-9
Browse files Browse the repository at this point in the history
Issue #28: PhpUnit 9, and Php 8.2 and 8.3.
  • Loading branch information
donquixote authored Oct 31, 2024
2 parents 3ab5fab + 16f3c59 commit 8a14a38
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 17 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.4]
php: [7.4, 8.1, 8.2, 8.3]

steps:
- uses: actions/checkout@v4
Expand All @@ -25,4 +25,8 @@ jobs:

- run: composer install --no-interaction

- run: vendor/bin/phpunit
- name: PhpUnit
run: |
set -x
php --version
vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"psr-4": { "Donquixote\\Cellbrush\\": "src/" }
},
"require-dev": {
"phpunit/phpunit": "^5"
"phpunit/phpunit": "^9.6"
}
}
16 changes: 7 additions & 9 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
convertDeprecationsToExceptions="true"
failOnIncomplete="true"
failOnRisky="true"
failOnSkipped="true"
failOnWarning="true"
bootstrap="vendor/autoload.php"
>
<testsuites>
Expand Down
3 changes: 2 additions & 1 deletion tests/src/AttributesMapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Donquixote\Cellbrush\Tests;

use Donquixote\Cellbrush\Html\Multiple\StaticAttributesMap;
use PHPUnit\Framework\TestCase;

class AttributesMapTest extends \PHPUnit_Framework_TestCase {
class AttributesMapTest extends TestCase {

function testMerge() {
$a = StaticAttributesMap::create(
Expand Down
3 changes: 2 additions & 1 deletion tests/src/CellMatrixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use Donquixote\Cellbrush\Cell\Cell;
use Donquixote\Cellbrush\Matrix\CellMatrix;
use PHPUnit\Framework\TestCase;

class CellMatrixTest extends \PHPUnit_Framework_TestCase {
class CellMatrixTest extends TestCase {

function testRowspanSimple() {
$cellMatrix = CellMatrix::create(2, 1);
Expand Down
3 changes: 2 additions & 1 deletion tests/src/CellbrushTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Donquixote\Cellbrush\Tests;

use Donquixote\Cellbrush\Table\Table;
use PHPUnit\Framework\TestCase;

class CellbrushTest extends \PHPUnit_Framework_TestCase {
class CellbrushTest extends TestCase {

function testRegularTable() {

Expand Down
3 changes: 2 additions & 1 deletion tests/src/HierarchyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Donquixote\Cellbrush\Tests;

use Donquixote\Cellbrush\Axis\DynamicAxis;
use PHPUnit\Framework\TestCase;

class HierarchyTest extends \PHPUnit_Framework_TestCase {
class HierarchyTest extends TestCase {

function testFlat() {
$hierarchy = new DynamicAxis();
Expand Down
3 changes: 2 additions & 1 deletion tests/src/TableSectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
use Donquixote\Cellbrush\Axis\DynamicAxis;
use Donquixote\Cellbrush\Html\Multiple\StaticAttributesMap;
use Donquixote\Cellbrush\TSection\TableSection;
use PHPUnit\Framework\TestCase;

class TableSectionTest extends \PHPUnit_Framework_TestCase {
class TableSectionTest extends TestCase {

function testRegularTable() {
$columns = new DynamicAxis();
Expand Down

0 comments on commit 8a14a38

Please sign in to comment.