Fix Controller_Auth_Test - T_CURLY_OPEN not parsed as "{". Update golden file.

--HG--
extra : source : 816294dd5f6fe23160baf9f516e49c66ea8fcb6c
This commit is contained in:
shadlaws
2013-06-26 23:49:48 +02:00
parent 3b5817a1e0
commit fe40dadd5c
2 changed files with 5 additions and 0 deletions

View File

@@ -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.