get(function_call('foo(blah)')); ?> bar"; $this->assertEquals($expected, $this->compiler->compileString($string)); } public function testLanguageAndChoicesAreCompiled() { $this->assertSame('get(\'foo\'); ?>', $this->compiler->compileString("@lang('foo')")); $this->assertSame('choice(\'foo\', 1); ?>', $this->compiler->compileString("@choice('foo', 1)")); } }