/**
* Attaches a single filter to multiple methods.
*
* @return void
*/
function testMultipleMethodFiltering()
{
$object = new MockMethodFiltering();
$this->assertIdentical($object->method2(), array());
$object->applyFilter(array('method', 'method2'), function ($self, $params, $chain) {
return $chain->next($self, $params, $chain);
});
$this->assertIdentical(array_keys($object->method2()), array('method', 'method2'));
}