Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpstan/phpstan-phpunit": "^1.4",
"phpstan/phpstan-strict-rules": "^1.6",
"phpunit/phpunit": "^8.5 || ^9.6 || ^10.5"
"phpunit/phpunit": "^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12.5 || ^13.3"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 6 additions & 0 deletions tests/ShapeFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

use PhpMyAdmin\ShapeFile\ShapeFile;
use PhpMyAdmin\ShapeFile\ShapeRecord;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;

use function count;
Expand All @@ -43,6 +44,7 @@ class ShapeFileTest extends TestCase
*
* @dataProvider provideFiles
*/
#[DataProvider('provideFiles')]
public function testLoad(string $filename, int $records, ?int $parts): void
{
$shp = new ShapeFile(1);
Expand Down Expand Up @@ -104,6 +106,7 @@ public static function provideFiles(): array
*
* @dataProvider provideErrorFiles
*/
#[DataProvider('provideErrorFiles')]
public function testLoadError(string $filename): void
{
$shp = new ShapeFile(1);
Expand Down Expand Up @@ -319,6 +322,7 @@ public function testShapeName(): void
*
* @dataProvider shapes
*/
#[DataProvider('shapes')]
public function testShapeSaveLoad(int $type, array $points): void
{
$filename = './data/test_shape-' . $type . '.*';
Expand Down Expand Up @@ -383,6 +387,7 @@ public function testShapeSaveLoad(int $type, array $points): void
*
* @dataProvider shapes
*/
#[DataProvider('shapes')]
public function testZetShapeSaveLoad(int $type, array $points): void
{
$this->testShapeSaveLoad($type + 10, $points);
Expand All @@ -396,6 +401,7 @@ public function testZetShapeSaveLoad(int $type, array $points): void
*
* @dataProvider shapes
*/
#[DataProvider('shapes')]
public function testMeasureShapeSaveLoad(int $type, array $points): void
{
$this->testShapeSaveLoad($type + 20, $points);
Expand Down
2 changes: 2 additions & 0 deletions tests/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
namespace PhpMyAdminTest\ShapeFile;

use PhpMyAdmin\ShapeFile\Util;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;

class UtilTest extends TestCase
Expand All @@ -38,6 +39,7 @@ class UtilTest extends TestCase
*
* @dataProvider data
*/
#[DataProvider('data')]
public function testLoadData(string $type, $data, $expected): void
{
$this->assertEquals(
Expand Down
Loading