Class: Test::PHPUnit::TestSuite

Inherits:
Unit::TestSuite
  • Object
show all
Includes:
TAP::TestSuite
Defined in:
lib/test/phpunit.rb

Instance Method Summary collapse

Methods included from TAP::TestSuite

#run, #size

Constructor Details

#initialize(php_file, opts = {}) ⇒ TestSuite

Returns a new instance of TestSuite.



18
19
20
21
22
# File 'lib/test/phpunit.rb', line 18

def initialize(php_file, opts={})
  @php_file = php_file
  @php_opt_string = opts.collect { |k,v| "--#{k} '#{v}'" }.join " "
  super 'Dummy'
end

Instance Method Details

#shell_cmdObject



24
25
26
# File 'lib/test/phpunit.rb', line 24

def shell_cmd
  "phpunit --tap #{@php_opt_string} #{@php_file}"
end