Example #1
0
 /**
  * Gets a list of reflection paramaters for the given class+method
  *
  * @param string $class        The name of the class
  * @param string $method       The name of the method
  * @return \ReflectionParameter[] a list of paramaters
  * @throws SetterDoesNotExist
  */
 function getParameters($class, $method)
 {
     $reflection = static::$reflection->reflection($class);
     if (!$reflection->hasMethod($method)) {
         throw new SetterDoesNotExist();
     }
     return $reflection->getMethod($method)->getParameters();
 }
Example #2
0
 function testCanFindInterfacesOfImp2()
 {
     $this->assertEquals(array('phemto\\A', 'phemto\\B'), $this->cache->interfacesOf('phemto\\Imp2'));
 }