MockAdapter.php 822 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Lithium: the most rad php framework
  4. *
  5. * @copyright Copyright 2013, Union of RAD (http://union-of-rad.org)
  6. * @license http://opensource.org/licenses/bsd-license.php The BSD License
  7. */
  8. namespace lithium\tests\mocks\g11n\multibyte\adapter;
  9. class MockAdapter extends \lithium\core\Object {
  10. public $testStrlenArgs = array();
  11. public $testStrposArgs = array();
  12. public $testStrrposArgs = array();
  13. public $testSubstrArgs = array();
  14. public static function enabled() {
  15. return true;
  16. }
  17. public function strlen() {
  18. $this->testStrlenArgs = func_get_args();
  19. }
  20. public function strpos() {
  21. $this->testStrposArgs = func_get_args();
  22. }
  23. public function strrpos() {
  24. $this->testStrrposArgs = func_get_args();
  25. }
  26. public function substr() {
  27. $this->testSubstrArgs = func_get_args();
  28. }
  29. }
  30. ?>