/usr/share/augeas/lenses/dist/tests
Edit: /usr/share/augeas/lenses/dist/tests/test_phpvars.aug (1664B)
module Test_phpvars =
let conf = "
"
test Phpvars.lns get conf =
{ }
{ "#mcomment"
{ "1" = "*" }
{ "2" = "* Multi line comment" }
{ "3" = "*" }
}
{ }
{ "#mcomment"
{ "1" = "One line comment" }
}
{ }
{ "#comment" = "Inline comment" }
{ "#comment" = "Bash-style comment" }
{ "global" = "version" }
{ "global" = "config_version" }
{ "$config_version" = "'1.4.0'" }
{ "$theme" = "array()" }
{ }
{ "$theme" = "'Default'"
{ "@arraykey" = "[0]['NAME']" }
{ "#comment" = "end-of line comment" } }
{ "$theme" = "SM_PATH . 'themes/default_theme.php'"
{ "@arraykey" = "[0][\"PATH\"]" }
}
{ "$theme" = "'/some//x/path'"
{ "@arraykey" = "[0]['XPATH']" }
}
{ "define" = "MYVAR"
{ "value" = "ROOT . 'some value'" }
{ "#comment" = "end-of line comment" } }
{ "include_once" = "ROOT . \"/path/to/conf\"" }
{ "include" = "ROOT . \"/path/to/conf\"" }
{ "@include" = "SM_PATH . 'config/config_local.php'" }
{ "config"
{ }
{"$tmppath" = "\"/tmp\""}
{"$offline" = "1"}
}
{ }