Fixes #1750 added proper block cloning to put the image size part after the #number and fixing Process call to array instead of string
This commit is contained in:
parent
b8346af548
commit
d9ea617545
|
|
@ -1085,7 +1085,7 @@ class TemplateProcessor
|
||||||
{
|
{
|
||||||
$results = array();
|
$results = array();
|
||||||
for ($i = 1; $i <= $count; $i++) {
|
for ($i = 1; $i <= $count; $i++) {
|
||||||
$results[] = preg_replace('/\$\{(.*?)\}/', '\${\\1#' . $i . '}', $xmlBlock);
|
$results[] = preg_replace('/\$\{(.*?)(:.*)?\}/', '\${\1#' . $i . '\2}', $xmlBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $results;
|
return $results;
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ abstract class AbstractWebServerEmbeddedTest extends \PHPUnit\Framework\TestCase
|
||||||
public static function setUpBeforeClass()
|
public static function setUpBeforeClass()
|
||||||
{
|
{
|
||||||
if (self::isBuiltinServerSupported()) {
|
if (self::isBuiltinServerSupported()) {
|
||||||
self::$httpServer = new Process('php -S localhost:8080 -t tests/PhpWord/_files');
|
self::$httpServer = new Process(array('php', '-S', 'localhost:8080', '-t', 'tests/PhpWord/_files'));
|
||||||
self::$httpServer->start();
|
self::$httpServer->start();
|
||||||
while (!self::$httpServer->isRunning()) {
|
while (!self::$httpServer->isRunning()) {
|
||||||
usleep(1000);
|
usleep(1000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue