添加Hook类测试

This commit is contained in:
thinkphp
2016-02-28 16:08:40 +08:00
parent c4d0e097fb
commit 5e592de087
4 changed files with 96 additions and 0 deletions

View 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;
}
}

View File

@@ -0,0 +1,9 @@
<?php
namespace tests\thinkphp\library\think\behavior;
class Three
{
public function run(&$data){
$data['id'] = 3;
}
}

View File

@@ -0,0 +1,9 @@
<?php
namespace tests\thinkphp\library\think\behavior;
class Two
{
public function run(&$data){
$data['id'] = 2;
}
}