From 43ad4ad1407ab46876e7785da6f0952b07071b99 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 10 May 2009 16:46:24 +0000 Subject: - Patch #458566 by chx: work around PHP's curly bracket madness. --- modules/simpletest/tests/registry.test | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/registry.test b/modules/simpletest/tests/registry.test index 4a859a64f..97ac23da8 100644 --- a/modules/simpletest/tests/registry.test +++ b/modules/simpletest/tests/registry.test @@ -135,3 +135,23 @@ CONTENTS; } +class RegistrySkipBodyTestCase extends DrupalWebTestCase { + public static function getInfo() { + return array( + 'name' => t('Skip function body test'), + 'description' => t('Tokenize a simple function and check that the body is skipped right'), + 'group' => t('System'), + ); + } + + function testRegistrySkipBody () { + // This string contains all three kinds of opening braces. + $function = 'assertIdentical(each($tokens), FALSE, t('Tokens skipped')); + } + +} \ No newline at end of file -- cgit v1.2.3