Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong tests #4071

Merged
merged 1 commit into from
May 4, 2024
Merged

Fix wrong tests #4071

merged 1 commit into from
May 4, 2024

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented May 4, 2024

No description provided.


$this->assertSame('fooUTF-8', $env1->getRuntime(EscaperRuntime::class)->escape('foo', 'foo'));
$this->assertSame('fooUTF-81', $env2->getRuntime(EscaperRuntime::class)->escape('foo', 'foo'));
}
}

function foo_escaper_for_test(Environment $twig, $string, $charset)
function legacy_escaper(Environment $twig, $string)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the old signature that we should still support.

@@ -389,16 +389,11 @@ public function provideObjectsForEscaping()
}
}

function foo_escaper_for_test_runtime($string, $charset)
function escaper($string, $charset)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the new signature supported by the runtime.

@fabpot fabpot merged commit 7ccf825 into twigphp:3.x May 4, 2024
73 of 76 checks passed
@fabpot fabpot deleted the escaper-tests-fix branch May 4, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant