Skip to content

Commit 66138b7

Browse files
committed
run tests with PHPUnit 12.3
1 parent 8f1db92 commit 66138b7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Tests/PropertyAccessorArrayAccessTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,27 @@ public function testGetValueFailsIfNoSuchIndex()
6464
}
6565

6666
#[DataProvider('getValidPropertyPaths')]
67-
public function testSetValue($collection, $path)
67+
public function testSetValue($collection, $path, $value)
6868
{
6969
$this->propertyAccessor->setValue($collection, $path, 'Updated');
7070

7171
$this->assertSame('Updated', $this->propertyAccessor->getValue($collection, $path));
7272
}
7373

7474
#[DataProvider('getValidPropertyPaths')]
75-
public function testIsReadable($collection, $path)
75+
public function testIsReadable($collection, $path, $value)
7676
{
7777
$this->assertTrue($this->propertyAccessor->isReadable($collection, $path));
7878
}
7979

8080
#[DataProvider('getValidPropertyPaths')]
81-
public function testIsWritable($collection, $path)
81+
public function testIsWritable($collection, $path, $value)
8282
{
8383
$this->assertTrue($this->propertyAccessor->isWritable($collection, $path));
8484
}
8585

8686
#[DataProvider('getInvalidPropertyPaths')]
87-
public function testIsNotWritable($collection, $path)
87+
public function testIsNotWritable($collection, $path, $value)
8888
{
8989
$this->assertFalse($this->propertyAccessor->isWritable($collection, $path));
9090
}

Tests/PropertyAccessorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function testGetValueReadsMagicCallThatReturnsConstant()
308308
}
309309

310310
#[DataProvider('getValidWritePropertyPaths')]
311-
public function testSetValue(array|object $objectOrArray, string $path)
311+
public function testSetValue(array|object $objectOrArray, string $path, ?string $value)
312312
{
313313
$this->propertyAccessor->setValue($objectOrArray, $path, 'Updated');
314314

@@ -404,7 +404,7 @@ public function testGetValueWhenArrayValueIsNull()
404404
}
405405

406406
#[DataProvider('getValidReadPropertyPaths')]
407-
public function testIsReadable(array|object $objectOrArray, string $path)
407+
public function testIsReadable(array|object $objectOrArray, string $path, ?string $value)
408408
{
409409
$this->assertTrue($this->propertyAccessor->isReadable($objectOrArray, $path));
410410
}
@@ -449,7 +449,7 @@ public function testIsReadableRecognizesMagicCallIfEnabled()
449449
}
450450

451451
#[DataProvider('getValidWritePropertyPaths')]
452-
public function testIsWritable(array|object $objectOrArray, string $path)
452+
public function testIsWritable(array|object $objectOrArray, string $path, ?string $value)
453453
{
454454
$this->assertTrue($this->propertyAccessor->isWritable($objectOrArray, $path));
455455
}

0 commit comments

Comments
 (0)