Class: Test::PHPUnit::TestSuite
- Inherits:
-
Unit::TestSuite
- Object
- Unit::TestSuite
- Test::PHPUnit::TestSuite
- Includes:
- TAP::TestSuite
- Defined in:
- lib/test/phpunit.rb
Instance Method Summary collapse
-
#initialize(php_file, opts = {}) ⇒ TestSuite
constructor
A new instance of TestSuite.
- #shell_cmd ⇒ Object
Methods included from TAP::TestSuite
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_cmd ⇒ Object
24 25 26 |
# File 'lib/test/phpunit.rb', line 24 def shell_cmd "phpunit --tap #{@php_opt_string} #{@php_file}" end |