The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TAP::Parser::SourceHandler::PHP - Runs PHP programs to get their TAP for prove

VERSION

Version 0.01

SYNOPSIS

This module is a plugin to let you run PHP programs under prove.

  prove --source Perl \
        --source PHP  --php-option include_path=/tmp/foo

CLASS METHODS

$handler->can_handle( $source )

Tells whether we should handle the file as a PHP test.

make_iterator

    my $iterator = $class->make_iterator( $source );

Returns a new iterator for the source. $source->raw must be either a file name or a scalar reference to the file name.

include_path

Paths to include for PHP to search for files.

SEE ALSO

TAP::Object, TAP::Parser, TAP::Parser::IteratorFactory, TAP::Parser::SourceHandler, TAP::Parser::SourceHandler::Executable, TAP::Parser::SourceHandler::Perl, TAP::Parser::SourceHandler::File, TAP::Parser::SourceHandler::Handle, TAP::Parser::SourceHandler::RawTAP

AUTHOR

Andy Lester, <andy at petdance.com>

BUGS

Please report any bugs or feature requests to bug-tap-parser-sourcehandler-php at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=TAP-Parser-SourceHandler-PHP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc TAP::Parser::SourceHandler::PHP

You can also look for information at:

ACKNOWLEDGEMENTS

Thanks to David Wheeler for being able to steal from his pgTAP SourceHandler.

http://www.justatheory.com/computers/programming/perl/tap-parser-sourcehandler.html

LICENSE AND COPYRIGHT

Copyright 2010 Andy Lester.

This program is released under the Artistic License v2.0.