From 59f95e35e5c285a5d7dbc974dff4796225320dd2 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 15 Sep 2019 14:47:06 -0400 Subject: [PATCH] Api3DocTrait - Generate future examples as `*.ex.php` --- Civi/Test/Api3DocTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Test/Api3DocTrait.php b/Civi/Test/Api3DocTrait.php index cde9462501..27440f70fa 100644 --- a/Civi/Test/Api3DocTrait.php +++ b/Civi/Test/Api3DocTrait.php @@ -123,7 +123,7 @@ trait Api3DocTrait { if (!is_dir($civicrm_root . "/api/v3/examples/$entity")) { mkdir($civicrm_root . "/api/v3/examples/$entity"); } - $f = fopen($civicrm_root . "/api/v3/examples/$entity/$exampleName.php", "w+b"); + $f = fopen($civicrm_root . "/api/v3/examples/$entity/$exampleName.ex.php", "w+b"); $contents = $smarty->fetch($civicrm_root . '/tests/templates/documentFunction.tpl'); $contents = \CRM_Core_CodeGen_Util_ArraySyntaxConverter::convert($contents); fwrite($f, $contents); -- 2.25.1