From 3bfeaee59202913f4a8b476a83a763d99ca34975 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 17 Sep 2024 21:25:09 +0200 Subject: [PATCH] refactor: Replace dirname(__FILE__) with __DIR__ Signed-off-by: Christoph Wurst --- tests/VObject/Issue153Test.php | 2 +- tests/VObject/Issue64Test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/VObject/Issue153Test.php b/tests/VObject/Issue153Test.php index 83e56cf50..9b9d7ec0e 100644 --- a/tests/VObject/Issue153Test.php +++ b/tests/VObject/Issue153Test.php @@ -8,7 +8,7 @@ class Issue153Test extends TestCase { public function testRead(): void { - $obj = Reader::read(file_get_contents(dirname(__FILE__).'/issue153.vcf')); + $obj = Reader::read(file_get_contents(__DIR__.'/issue153.vcf')); self::assertEquals('Test Benutzer', (string) $obj->FN); } } diff --git a/tests/VObject/Issue64Test.php b/tests/VObject/Issue64Test.php index 110f91fa2..f9e7dbf96 100644 --- a/tests/VObject/Issue64Test.php +++ b/tests/VObject/Issue64Test.php @@ -8,7 +8,7 @@ class Issue64Test extends TestCase { public function testRead(): void { - $vcard = Reader::read(file_get_contents(dirname(__FILE__).'/issue64.vcf')); + $vcard = Reader::read(file_get_contents(__DIR__.'/issue64.vcf')); $vcard = $vcard->convert(Document::VCARD30); $vcard = $vcard->serialize();