Exemplo n.º 1
0
 /**
  * @return void
  */
 protected function prepareDistillate()
 {
     $reflector = new \ReflectionClass($this->reflectionClass);
     $iterator = new \ArrayIterator($reflector->getMethods($this->methodModifiers));
     foreach ($this->decorateMethodIterator($iterator, $reflector) as $method) {
         $this->distillate->addMethod($method);
     }
 }
 /**
  * @covers \com\github\gooh\InterfaceDistiller\Distillate::addMethod
  * @covers \com\github\gooh\InterfaceDistiller\Distillate::getInterfaceMethods
  */
 public function testCanGetAndSetInterfaceMethods()
 {
     $method = $this->getMock('\\ReflectionMethod', array(), array(), '', false);
     $this->distillate->addMethod($method);
     $this->assertEquals(array($method), $this->distillate->getInterfaceMethods());
 }