/**
  * Test whether this filter chain contains given callback
  *
  * @param  callable $callback
  * @return bool
  */
 public function containsCallback(callable $callback)
 {
     // Normalize the callback
     $pc = new ProgrammableCallback($callback);
     $callback = $pc->getCallback();
     foreach ($this->items as $filter) {
         if ($callback === $filter->getCallback()) {
             return true;
         }
     }
     return false;
 }
 /**
  * @testdox getCallback() returns the callback
  */
 public function testGetCallback()
 {
     $pc = new ProgrammableCallback('strtolower');
     $this->assertSame('strtolower', $pc->getCallback());
 }