Sha256: f5846b5de17251fd729c652a2d4dbe32bc03d9f5cd89503db934f83c5e553c19
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
require 'test/tap/test_suite' module Test module PHPUnit def phpunit(file, opts={}) (class << self; self end).instance_eval do define_method :suite do Test::PHPUnit::TestSuite.new file, opts end end end class TestSuite < Test::Unit::TestSuite include Test::TAP::TestSuite def initialize(php_file, opts={}) @php_file = php_file @php_opt_string = opts.collect { |k,v| "--#{k} '#{v}'" }.join " " super 'Dummy' end def shell_cmd "phpunit --tap #{@php_opt_string} #{@php_file}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tap_out-0.0.1 | lib/test/phpunit.rb |