class Overcommit::Hook::PrePush::PhpUnit

Runs ‘phpunit` test suite before push

@see phpunit.de/

Public Instance Methods

run() click to toggle source
# File lib/overcommit/hook/pre_push/php_unit.rb, line 8
def run
  result = execute(command)
  return :pass if result.success?

  output = result.stdout + result.stderr
  [:fail, output]
end