Exemplo n.º 1
0
 /**
  * @param string $fromClassName
  * @param string $intoInterfaceName
  *
  * @return void
  */
 public function distill($fromClassName, $intoInterfaceName)
 {
     $this->reflectionClass = $fromClassName;
     $this->distillate->setInterfaceName($intoInterfaceName);
     $this->prepareDistillate();
     $this->writeDistillate();
 }
 /**
  * @covers \com\github\gooh\InterfaceDistiller\Distillate::getInterfaceName
  * @covers \com\github\gooh\InterfaceDistiller\Distillate::setInterfaceName
  */
 public function testCanGetAndSetInterfaceName()
 {
     $this->distillate->setInterfaceName('NewInterface');
     $this->assertSame('NewInterface', $this->distillate->getInterfaceName());
 }