Skip to content

Commit

Permalink
删除测试中动态注解属性(计划废弃)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 31, 2023
1 parent 0af7c95 commit fbee13d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/unit/Component/Enum/TestEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

class TestEnum extends BaseEnum
{
#[EnumItem(text: '', other: 'a1')]
#[EnumItem(text: '')]
public const A = 1;

#[EnumItem(text: '', other: 'b2')]
#[EnumItem(text: '')]
public const B = 2;

#[EnumItem(text: '', other: 'c3')]
#[EnumItem(text: '')]
public const C = 3;
}
1 change: 0 additions & 1 deletion tests/unit/Component/Tests/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public function test(): void
{
$data = TestEnum::getData(TestEnum::A);
Assert::assertEquals('', $data['text'] ?? null);
Assert::assertEquals('a1', $data['other'] ?? null);

Assert::assertEquals('B', TestEnum::getName(TestEnum::B));
Assert::assertEquals([
Expand Down

0 comments on commit fbee13d

Please sign in to comment.