public function testFilterPrefix()
 {
     $expected = ['prefixFirstFunction', 'prefixSecondFunction'];
     $reflection = new ReflectionMethodsFilter(new ReflectionMethodsFilterTestSubject());
     $result = $reflection->filterPrefix('prefix');
     $this->assertSame($expected, $result);
 }
 public function register(Router $router, Resolver $resolver)
 {
     $reflection = new ReflectionMethodsFilter($this);
     foreach ($methods = $reflection->filterPrefix($this->getPrefix()) as $method) {
         $router->filter($method, $resolver->methodToClosure($this, $method));
     }
     $this->registered = true;
 }