コード例 #1
0
 public function testCallbackFilter()
 {
     //simple test
     $postApply = ' and my applying';
     $filter = CallbackFilter::create(function ($value) use($postApply) {
         return $value . $postApply;
     });
     $this->assertEquals('one another value and my applying', $filter->apply('one another value'));
 }