Skip to content

Commit

Permalink
Merge pull request #611 from phil-davis/self-assert-phpunit
Browse files Browse the repository at this point in the history
Call static assert functions with self::
  • Loading branch information
phil-davis authored Feb 8, 2023
2 parents 6aff45c + 435d081 commit 198196c
Show file tree
Hide file tree
Showing 83 changed files with 1,053 additions and 1,053 deletions.
2 changes: 1 addition & 1 deletion tests/VObject/AttachIssueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public function testRead(): void
ICS;
$obj = Reader::read($event);
$this->assertEquals($event, $obj->serialize());
self::assertEquals($event, $obj->serialize());
}
}
24 changes: 12 additions & 12 deletions tests/VObject/BirthdayCalendarGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function testVcardStringWithValidBirthday(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -97,7 +97,7 @@ public function testArrayOfVcardStringsWithValidBirthdays(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -156,7 +156,7 @@ public function testArrayOfVcardStringsWithValidBirthdaysViaConstructor(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -195,7 +195,7 @@ public function testVcardObjectWithValidBirthday(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -257,7 +257,7 @@ public function testArrayOfVcardObjectsWithValidBirthdays(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -294,7 +294,7 @@ public function testVcardStringWithValidBirthdayWithXAppleOmitYear(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -331,7 +331,7 @@ public function testVcardStringWithValidBirthdayWithoutYear(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -359,7 +359,7 @@ public function testVcardStringWithInvalidBirthday(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand All @@ -386,7 +386,7 @@ public function testVcardStringWithNoBirthday(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -424,7 +424,7 @@ public function testVcardStringWithValidBirthdayLocalized(): void
$generator->setFormat('%1$s\'s Geburtstag');
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -452,7 +452,7 @@ public function testVcardStringWithEmptyBirthdayProperty(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down Expand Up @@ -534,7 +534,7 @@ public function testBrokenVcardWithoutFN(): void
$generator->setObjects($input);
$output = $generator->getResult();

$this->assertVObjectEqualsVObject(
self::assertVObjectEqualsVObject(
$expected,
$output
);
Expand Down
Loading

0 comments on commit 198196c

Please sign in to comment.