Skip to content

Commit

Permalink
Merge pull request #80 from szymach/php8.1
Browse files Browse the repository at this point in the history
Allow PHP 8.1
  • Loading branch information
szymach authored Jun 5, 2022
2 parents 6e06f3f + a7b8361 commit 0cecbea
Show file tree
Hide file tree
Showing 28 changed files with 29 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ matrix:
- php: 7.3
- php: 7.4
- php: 8.0
# - php: 8.1
- php: 8.1
env:
- COVERAGE='--coverage --coverage-xml'
XDEBUG_MODE=coverage
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"files": ["constants.php"]
},
"autoload-dev": {
"psr-4": { "CpChart\\Test\\": "tests/" }
"psr-4": { "Test\\CpChart\\": "tests/" }
},
"require": {
"php": "^5.4|^7.0|8.0.*",
"php": "^5.4|^7.0|^8.0",
"ext-gd": "*"
},
"require-dev" : {
Expand Down
4 changes: 1 addition & 3 deletions constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
/**
* @filesource src/Resources/data/configuration.php
*
* All the class constants moved into a single file for compatibility
* with the factory service class. This file is *required* for the library
* to function.
* All the class constants that were previously in class files are moved here into a single file.
*/
/**
* pBubble
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/AreaTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/BarCodeTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Barcode\Barcode128;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/BarTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/BestFitTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/BubbleTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Chart\Bubble;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/CacheTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Cache;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/FilledSplineTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/FilledStepTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/LineTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/PieTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/PlotTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/PolarTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ProgressTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Image;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/RadarTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ResourceTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ScatterTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/SplineTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/SplitPathTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/SpringTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Image;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/StackedAreaTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/StackedBarTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/StepTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/StockTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/SurfaceTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Image;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ZoneTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CpChart\Test;
namespace Test\CpChart;

use Codeception\Test\Unit;
use CpChart\Data;
Expand Down

0 comments on commit 0cecbea

Please sign in to comment.