mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Update AopAspectTest.php
This commit is contained in:
parent
0a00b6fe2a
commit
86d316338c
@ -68,7 +68,7 @@ class AopAspectTest extends TestCase
|
||||
], []);
|
||||
|
||||
$res = Aspect::parse('Demo');
|
||||
$this->assertSame(RewriteCollection::LEVEL_CLASS, $res->getLevel());
|
||||
$this->assertSame(RewriteCollection::CLASS_LEVEL, $res->getLevel());
|
||||
$this->assertFalse($res->shouldRewrite('__construct'));
|
||||
$this->assertTrue($res->shouldRewrite('test'));
|
||||
}
|
||||
@ -84,7 +84,7 @@ class AopAspectTest extends TestCase
|
||||
|
||||
$res = Aspect::parse('Demo');
|
||||
|
||||
$this->assertSame(RewriteCollection::LEVEL_CLASS, $res->getLevel());
|
||||
$this->assertSame(RewriteCollection::CLASS_LEVEL, $res->getLevel());
|
||||
$this->assertFalse($res->shouldRewrite('__construct'));
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ class AopAspectTest extends TestCase
|
||||
|
||||
$res = Aspect::parse('Demo');
|
||||
|
||||
$this->assertSame(RewriteCollection::LEVEL_METHOD, $res->getLevel());
|
||||
$this->assertSame(RewriteCollection::METHOD_LEVEL, $res->getLevel());
|
||||
$this->assertFalse($res->shouldRewrite('__construct'));
|
||||
$this->assertTrue($res->shouldRewrite('test1'));
|
||||
$this->assertTrue($res->shouldRewrite('test2'));
|
||||
|
Loading…
Reference in New Issue
Block a user