Skip to content

Commit

Permalink
Adjust VCalendarTest to work with old phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed May 30, 2024
1 parent b747081 commit eb2c41e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/VObject/Component/VCalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,8 @@ public function testNodeInValidationErrorHasLineIndexAndLineStringProps(): void
foreach ($result as $idx => $warning) {
self::assertArrayHasKey('node', $warning);
self::assertInstanceOf(VObject\Property\ICalendar\DateTime::class, $warning['node']);
self::assertObjectHasProperty('lineIndex', $warning['node']);
self::assertObjectHasProperty('lineString', $warning['node']);
self::assertObjectHasAttribute('lineIndex', $warning['node']);
self::assertObjectHasAttribute('lineString', $warning['node']);
switch ($idx) {
case 0:
self::assertEquals('10', $warning['node']->lineIndex);
Expand Down

0 comments on commit eb2c41e

Please sign in to comment.