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 english, spanish and french.
message
greeting
english
spanish
french
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:jdrago_999@yahoo.com
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.
To install Apache2::ASP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::ASP
CPAN shell
perl -MCPAN -e shell install Apache2::ASP
For more information on module installation, please visit the detailed CPAN module installation guide.