# encoding: utf-8
import os.path
import pytest
from phpy import PHP


test_php_path = os.path.join(os.path.dirname(__file__), 'test.php')


@pytest.mark.parametrize(('foo', 'bar', 'baz'), [
    (1, 2, 3),
    (0.0, 1.1, 2.2),
    ('foo', 'bar', 'baz'),
    (u'가', u'나', u'다'),
    (None, None, None),
])
def test_get_dict(foo, bar, baz):
    php = PHP(test_php_path)
    assert (
        php.get_dict('mapping', [foo, bar, baz]) ==
        dict(foo=foo, bar=bar, baz=baz)
    )

@@ -266,24 +266,72 @@
 '%EB%82%98', u'%EB%8B%A4'),%0A
+    (%22'test' is important%22, %22%5C%5Cbar%22, %22%5C%5C'baz%22),%0A
     (None, N

Add escaping test