#!/usr/local/bin/perl
BEGIN
{
# use Test::More qw( no_plan );
# use_ok( 'Apache2::SSI' ) || BAIL_OUT( "Unable to load Apache2::SSI" );
require
(
"./t/functions.pl"
) || BAIL_OUT(
"Unable to find library \"functions.pl\"."
);
our
$BASE_URI
;
our
$DEBUG
=
exists
(
$ENV
{AUTHOR_TESTING} ) ?
$ENV
{AUTHOR_TESTING} : 0;
};
use
strict;
use
warnings;
my
$tests
=
[
{
expect
=>
qr/^[[:blank:]\h\v]*value\: the "value"/
,
name
=>
'setting variable with escaped quotes'
,
uri
=>
"${BASE_URI}/06.01.escape.html"
,
code
=> 200,
},
];
run_tests(
$tests
,
{
debug
=> 0,
type
=>
'escape'
,
});