Apache2::ASP::Test::Fixtures - Simle text fixtures for Apache2::ASP web applications.
my $data = Apache2::ASP::Test::Fixtures->new( properties_file => $config->application_root . '/etc/test_fixtures.yaml' ); print $data->message->greeting->english;
Returns a hash or hashref or your test fixture data, depending on the context in which this method is called.
Each top-level node in your YAML file is assigned a public accessor.
So if your YAML looks something like this
--- message: greeting: english: Hello spanish: Hola french: Bonjour
You would get an object with a public accessor named
message with an accessor named
greeting with accessors named
It's possible that some bugs have found their way into this release.
Use RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=Apache2-ASP to submit bug reports.
Please visit the Apache2::ASP homepage at http://www.devstack.com/ to see examples of Apache2::ASP in action.
John Drago mailto:firstname.lastname@example.org
Copyright 2007 John Drago, All rights reserved.
This software is free software. It may be used and distributed under the same terms as Perl itself.