diff options
author | Shad Laws <shad@shadlaws.com> | 2013-06-26 14:59:04 -0700 |
---|---|---|
committer | Shad Laws <shad@shadlaws.com> | 2013-06-26 14:59:04 -0700 |
commit | 6573fac04972fee3807f3700f46244fb517d5b04 (patch) | |
tree | 10962a04e8ee7a04a89aa2141ab02eaf4257803f /modules/gallery/tests/Controller_Auth_Test.php | |
parent | 3b5817a1e08ac2344f71b9ca98ac80edf157164b (diff) | |
parent | fe40dadd5c487b5d4d64097a72bb123ffed1e30c (diff) |
Merge pull request #434 from shadlaws/fix_controller_auth_test_master
Fix Controller_Auth_Test - T_CURLY_OPEN not parsed as "{". Update golden file.
Diffstat (limited to 'modules/gallery/tests/Controller_Auth_Test.php')
-rw-r--r-- | modules/gallery/tests/Controller_Auth_Test.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/tests/Controller_Auth_Test.php b/modules/gallery/tests/Controller_Auth_Test.php index e1ca0a7b..6551decb 100644 --- a/modules/gallery/tests/Controller_Auth_Test.php +++ b/modules/gallery/tests/Controller_Auth_Test.php @@ -47,6 +47,10 @@ class Controller_Auth_Test extends Gallery_Unit_Test_Case { $function = null; for ($token_number = 0; $token_number < count($tokens); $token_number++) { $token = $tokens[$token_number]; + if (self::_token_matches(array(T_CURLY_OPEN), $tokens, $token_number)) { + // Treat this just like a normal open curly brace + $token = "{"; + } // Count braces. // 1 open brace = in class context. |