예제 #1
0
 protected function createStepWithLabelCallable($number, $returnValue)
 {
     return Step::createFromConfig($number, array('label' => StepLabel::createCallableLabel(function () use($returnValue) {
         return $returnValue;
     })));
 }
예제 #2
0
 /**
  * @dataProvider dataGetText_callableInvalidReturnValue
  * @expectedException Craue\FormFlowBundle\Exception\StepLabelCallableInvalidReturnValueException
  */
 public function testGetText_callableInvalidReturnValue($value)
 {
     StepLabel::createCallableLabel($value)->getText();
 }