Ejemplo n.º 1
0
 public function testSkipByReference()
 {
     $stdObj = new \lithium\tests\mocks\test\mockStdClass\Mock();
     $stdObj->foo = 'foo';
     $originalData = $stdObj->data();
     $stdObj->applyFilter('data', function ($self, $params, $chain) {
         return array();
     });
     $nonfilteredData = $stdObj->data();
     $this->assertIdentical($originalData, $nonfilteredData);
 }