mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
添加Hook类测试
This commit is contained in:
15
tests/thinkphp/library/think/behavior/One.php
Normal file
15
tests/thinkphp/library/think/behavior/One.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace tests\thinkphp\library\think\behavior;
|
||||
|
||||
class One
|
||||
{
|
||||
public function run(&$data){
|
||||
$data['id'] = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
public function test(&$data){
|
||||
$data['name'] = 'test';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
9
tests/thinkphp/library/think/behavior/Three.php
Normal file
9
tests/thinkphp/library/think/behavior/Three.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
namespace tests\thinkphp\library\think\behavior;
|
||||
|
||||
class Three
|
||||
{
|
||||
public function run(&$data){
|
||||
$data['id'] = 3;
|
||||
}
|
||||
}
|
||||
9
tests/thinkphp/library/think/behavior/Two.php
Normal file
9
tests/thinkphp/library/think/behavior/Two.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
namespace tests\thinkphp\library\think\behavior;
|
||||
|
||||
class Two
|
||||
{
|
||||
public function run(&$data){
|
||||
$data['id'] = 2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user