diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/CitationTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/CitationTest.php index 58a225635828854d773dfe4ff1c04c9bf708c29b..56424e39f0f42382cd420c09601dbd4f0041f42b 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/CitationTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/CitationTest.php @@ -276,6 +276,26 @@ class CitationTest extends \VuFindTest\Unit\ViewHelperTestCase // @codingStandardsIgnoreEnd ); + /** + * Setup test case. + * + * Mark test skipped if short_open_tag is not enabled. The partial + * uses short open tags. This directive is PHP_INI_PERDIR, + * i.e. can only be changed via php.ini or a per-directory + * equivalent. The testCitations() will fail if the test is run on + * a system with short_open_tag disabled in the system-wide php + * ini-file. + * + * @return void + */ + protected function setup () + { + parent::setup(); + if (!ini_get('short_open_tag')) { + $this->markTestSkipped('Test requires short_open_tag to be enabled'); + } + } + /** * Test citation generation *