MockCollectionObject.php 539 B

123456789101112131415161718192021222324252627
  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\util;
  9. class MockCollectionObject extends \lithium\core\Object {
  10. public $data = array(1 => 2);
  11. public function testFoo() {
  12. return 'testFoo';
  13. }
  14. public function to($format, array $options = array()) {
  15. switch ($format) {
  16. case 'array':
  17. return $this->data + array(2 => 3);
  18. }
  19. }
  20. }
  21. ?>