/** * get properties as dummy stub, e.g. "$message, $flag" will be transformed into "1, 2" * * tries to identify the correct types based on doc comments, otherwise or if comment doesnt match parameters, it will use the type hints * * @return string */ public function getPropertyDummyStub(\PhpUnitTestGenerator\Generator\TestMethod $method, $withoutValues = false) { return Generator::getPropsAsStringByReflectionMethod($method->getOriginalMethod(), $withoutValues); }
public function getConstructorArgs() { try { $constructor = $this->object->getConstructor(); if ($constructor !== null) { return Data\Generator::getPropsAsStringByReflectionMethod($constructor); } return ''; } catch (\Exception $e) { echo "Problem with constructor in class " . $this->getOriginalFullClassName() . "\n"; echo $e; exit; } }