Author: maksim_ka
Date: 2010-04-08 10:01:47 +0200 (Thu, 08 Apr 2010)
New Revision: 29041

Modified:
   plugins/sfPhpunitPlugin/branches/1.2/lib/task/sfPhpunitRuntestTask.class.php
Log:
[sfPhpunitPlugin][sf1.2] remove phpunit's native cli arguments. instead of it 
use phpunit test/phpunit/AllTests.php

Modified: 
plugins/sfPhpunitPlugin/branches/1.2/lib/task/sfPhpunitRuntestTask.class.php
===================================================================
--- 
plugins/sfPhpunitPlugin/branches/1.2/lib/task/sfPhpunitRuntestTask.class.php    
    2010-04-07 21:44:15 UTC (rev 29040)
+++ 
plugins/sfPhpunitPlugin/branches/1.2/lib/task/sfPhpunitRuntestTask.class.php    
    2010-04-08 08:01:47 UTC (rev 29041)
@@ -20,11 +20,6 @@
       new sfCommandArgument('test', sfCommandArgument::OPTIONAL, 'Name of test 
to run', '')));
     
     $this->addOptions(array(
-      new sfCommandOption('log-junit', null, 
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null),
-      new sfCommandOption('log-pmd', null, 
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null),
-      new sfCommandOption('log-metrics', null, 
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null),
-      new sfCommandOption('coverage-clover', null, 
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null),
-      new sfCommandOption('coverage-html', null, 
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null),
       new sfCommandOption('env', null, sfCommandOption::PARAMETER_OPTIONAL, 
'The envirement name', 'test')));
     
     
@@ -55,41 +50,6 @@
        $path = $arguments['test'];
 
        $runner = new PHPUnit_TextUI_TestRunner();
-    $runner->doRun(
-      sfPhpunitSuiteLoader::factory($path)->getSuite(), 
-      $this->_handleArguments($options));
+    $runner->doRun(sfPhpunitSuiteLoader::factory($path)->getSuite());
   }
-  
-  protected function _handleArguments(array $options = array())
-  {
-    $arguments = array();
-    
-    if ($options['log-junit']) {
-      $arguments['junitLogfile'] = $options['log-junit'];
-    }
-    if ($options['coverage-clover']) {
-      if (extension_loaded('tokenizer') && extension_loaded('xdebug')) {
-        $arguments['coverageClover'] = $options['coverage-clover'];
-      } else {
-        if (!extension_loaded('tokenizer')) {
-          throw new Exception('For the `coverage-clover` option need to be 
loaded tokenizer extension.');
-        } else {
-          throw new Exception('For the `coverage-clover` option need to be 
loaded Xdebug extension.');
-        }
-      }
-    }
-    if ($options['coverage-html']) {
-      if (extension_loaded('tokenizer') && extension_loaded('xdebug')) {
-        $arguments['reportDirectory'] = $options['coverage-html'];
-      } else {
-        if (!extension_loaded('tokenizer')) {
-          throw new Exception('For the `coverage-html` option need to be 
loaded tokenizer extension.');
-        } else {
-          throw new Exception('For the `coverage-html` option need to be 
loaded Xdebug extension.');
-        }
-      }
-    }
-    
-    return $arguments;
-  }
 }
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to