21 $scriptSuccess = null;
23 exec ($this->scriptCommand(
'generate-complex-datatypes'),$output,$scriptSuccess);
24 $this->assertSame(0, $scriptSuccess);
30 $scriptSuccess = null;
31 exec ($this->scriptCommand(
'generate-methods'),$output,$scriptSuccess);
32 $this->assertSame(0, $scriptSuccess);
35 private function scriptCommand($name)
37 $phpBin = exec(
'which php');
39 if (!file_exists($phpBin) || !is_executable($phpBin)) {
40 throw new \Exception(
'Could not determine PHP exec.');
43 return $phpBin .
' ' . str_replace(
44 'tests/CodeGenerators',
45 'scripts/' . $name .
'.php --no-file-generation',
testGenerateComplexTypes()