Skip to content

Commit

Permalink
Enable PHP 7.2 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Oct 5, 2023
1 parent 7ffaa65 commit fd094a4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/AopCodeGenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,13 @@ public function testUnionType(): void
$this->assertStringContainsString('public function method18(): string|int', $code);
$this->assertStringContainsString('public function method19(): string|int|null', $code);
$this->assertStringContainsString('public function method20(): \DateTime|string|null', $code);
$this->assertStringContainsString(<<<'EOT'
/**
$this->assertStringContainsString(' /**
* PHPDoc
*/
#[\Ray\Aop\Annotation\FakeMarker4(array ( 0 => 1, 1 => 2, ), 3)]
public function method21()
EOT, $code);
$this->assertStringContainsString(<<<'EOT'
#[\Ray\Aop\Annotation\FakeMarkerName(a: 1, b: 'string', c: true)]
public function method22()
EOT, $code);
#[\\Ray\\Aop\\Annotation\\FakeMarker4(array ( 0 => 1, 1 => 2, ), 3)]
public function method21()', $code);
$this->assertStringContainsString('#[\\Ray\\Aop\\Annotation\\FakeMarkerName(a: 1, b: \'string\', c: true)]
public function method22()', $code);
}

public function testInvalidSourceClass(): void
Expand Down

0 comments on commit fd094a4

Please sign in to comment.