您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

TestBusiness.php 483B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 9/27/15
  6. * Time: 5:01 PM
  7. */
  8. require_once("../vendor/autoload.php");
  9. require_once("TestDataAccess.php");
  10. function abort($code, $reason)
  11. {
  12. echo "ABORTED: $code, $reason\n";
  13. exit;
  14. }
  15. class TestsBusiness extends \Luticate\Utils\LuBusiness
  16. {
  17. protected static function getDataAccess()
  18. {
  19. return new TestsDataAccess();
  20. }
  21. }
  22. var_dump(TestsBusiness::getById(42));
  23. var_dump(TestsBusiness::getById(4242));