Class: Koine::TestRunner::Adapters::Phpunit

Inherits:
BaseRegexp show all
Defined in:
lib/koine/test_runner/adapters/phpunit.rb

Constant Summary collapse

DEFAULT_OPTIONS =
[
  '--color'
].freeze

Instance Attribute Summary

Attributes inherited from BaseAdapter

#next_adapter

Instance Method Summary collapse

Methods inherited from BaseAdapter

#test_command

Constructor Details

#initialize(file_pattern: /.*Test.php$/, options: nil) ⇒ Phpunit

Returns a new instance of Phpunit.



9
10
11
12
# File 'lib/koine/test_runner/adapters/phpunit.rb', line 9

def initialize(file_pattern: /.*Test.php$/, options: nil)
  super(file_pattern: file_pattern)
  @options = Array(options || DEFAULT_OPTIONS)
end