Update AopAspectTest.php

This commit is contained in:
huangzhhui 2019-07-27 22:20:09 +08:00
parent 0a00b6fe2a
commit 86d316338c

View File

@ -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'));