I've set-up a small test-case that demonstrates a hick-up the Twig_String_Loader currently has: it doesn't process properties that user underscores in their name, using {{ foo.acme_string }} to access $acme_string will fail with
Twig_Error_Runtime: Method "acme_string"
for object "Tests\Foo" does not exist
in "{{ foo.int }}, {{ foo.acme_string }}"
Although as per doc-comment on the Loader\String the loader should only be used for testing purposes this should work anyway. Else it is not really suitable for testing.
I've set-up a small test-case that demonstrates a hick-up the Twig_String_Loader currently has: it doesn't process properties that user underscores in their name, using
{{ foo.acme_string }}to access$acme_stringwill fail withAlthough as per doc-comment on the Loader\String the loader should only be used for testing purposes this should work anyway. Else it is not really suitable for testing.