<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,12 +8,11 @@ require &quot;#{ENV['TM_BUNDLE_SUPPORT']}/phpunit.rb&quot;
 test_name = TestFinder.find_last_test_before_line(ENV['TM_FILEPATH'], ENV['TM_LINE_NUMBER'])
 file = ENV['TM_FILENAME']
 dir = PHPUnit::Processor.is_remote? ? ENV['TM_DIRECTORY'].gsub(/#{ENV['LOCAL_PATH']}/,ENV[&quot;REMOTE_PATH&quot;]) : ENV['TM_DIRECTORY']
-
+cmd = &quot;cd #{dir}; phpunit --log-xml /tmp/#{file}.xml --filter #{test_name} #{file} &gt; /dev/null; cat /tmp/#{file}.xml; rm /tmp/#{file}.xml&quot;
 if PHPUnit::Processor.is_remote? 
-  output = `ssh #{ENV['REMOTE_HOST']} &quot;cd #{dir}; phpunit --log-xml /tmp/#{file}.xml --filter #{test_name} #{file} &gt; /dev/null; cat /tmp/#{file}.xml; rm /tmp/#{file}.xml&quot;`
+  output = `ssh #{ENV['REMOTE_HOST']} &quot;#{cmd}&quot;`
 else
-  output = `cd #{dir}; phpunit --log-xml /tmp/#{file}.xml --filter #{test_name} #{file} &gt; /dev/null; cat /tmp/#{file}.xml; rm /tmp/#{file}.xml`
+  output = `#{cmd}`
 end
-
 results = PHPUnit::Processor.xml(output)
 puts ERB.new(File.read(&quot;#{ENV['TM_BUNDLE_SUPPORT']}/results.html.erb&quot;)).result(binding)
\ No newline at end of file</diff>
      <filename>Support/run_single_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,11 +7,11 @@ require &quot;#{ENV['TM_BUNDLE_SUPPORT']}/phpunit.rb&quot;
 
 file = ENV['TM_FILENAME']
 dir = PHPUnit::Processor.is_remote? ? ENV['TM_DIRECTORY'].gsub(/#{ENV['LOCAL_PATH']}/,ENV[&quot;REMOTE_PATH&quot;]) : ENV['TM_DIRECTORY']
+cmd = &quot;cd #{dir}; phpunit --log-xml /tmp/#{file}.xml #{file} &gt; /dev/null; cat /tmp/#{file}.xml; rm /tmp/#{file}.xml&quot;
 if PHPUnit::Processor.is_remote? 
-  output = `ssh #{ENV['REMOTE_HOST']} &quot;cd #{dir}; phpunit --log-xml /tmp/#{file}.xml #{file} &gt; /dev/null; cat /tmp/#{file}.xml; rm /tmp/#{file}.xml&quot;`
+  output = `ssh #{ENV['REMOTE_HOST']} &quot;#{cmd}&quot;`
 else
-  output = `cd #{dir}; phpunit --log-xml /tmp/#{file}.xml #{file} &gt; /dev/null; cat /tmp/#{file}.xml; rm /tmp/#{file}.xml`
+  output = `#{cmd}`
 end
-
 results = PHPUnit::Processor.xml(output)
 puts ERB.new(File.read(&quot;#{ENV['TM_BUNDLE_SUPPORT']}/results.html.erb&quot;)).result(binding)
\ No newline at end of file</diff>
      <filename>Support/run_tests.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>40c127fa6a681c0673cc3800d435431e42322a6f</id>
    </parent>
  </parents>
  <author>
    <name>Christopher Cowan</name>
    <email>ccowan@playpeace-lm.corp.yahoo.com</email>
  </author>
  <url>http://github.com/meritt/phpunit-tmbundle/commit/7ba374d21c0e437d10fb4c6a154e04d1ba54e177</url>
  <id>7ba374d21c0e437d10fb4c6a154e04d1ba54e177</id>
  <committed-date>2009-06-09T01:03:07-07:00</committed-date>
  <authored-date>2009-06-08T23:12:10-07:00</authored-date>
  <message>refactoring again

Signed-off-by: Alexey Simonenko &lt;dwarfman@gmail.com&gt;</message>
  <tree>39dbb91062571152c052433aa62ada8991d0ad15</tree>
  <committer>
    <name>Alexey Simonenko</name>
    <email>dwarfman@gmail.com</email>
  </committer>
</commit>
