Development

Changeset 5786

You must first sign up to be able to contribute.

Changeset 5786

Show
Ignore:
Timestamp:
11/01/07 05:15:03 (6 years ago)
Author:
notjosh
Message:

sfPHPUnitPlugin: updated settings.yml, updated Pake tasks, created common base selenium testcase. now we can use model classes in unit tests, and configure selenium better

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPHPUnitPlugin/config/settings.yml

    r5418 r5786  
    11all: 
    2   selenium
    3     port: 444
     2  selenium_rc
     3    port: 545
    44    host: localhost 
     5    browser: *firefox 
  • plugins/sfPHPUnitPlugin/data/tasks/sfPakePHPUnit.php

    r5439 r5786  
    100100  $phpUnitPath = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . '/lib/PHPUnit'); 
    101101  set_include_path($phpUnitPath . PATH_SEPARATOR . get_include_path()); 
     102   
     103  _init_symfony(); 
    102104} 
    103105 
    104106function _init_selenium() 
    105107{ 
    106   _init_symfony(); 
    107  
    108   $host = sfConfig::get('sf_selenium_host'); 
    109   $port = sfConfig::get('sf_selenium_port'); 
     108  $host = sfConfig::get('sf_selenium_rc_host'); 
     109  $port = sfConfig::get('sf_selenium_rc_port'); 
    110110 
    111111  // probe for selenium running externally 
     
    170170function _start_selenium($jar_path) 
    171171{ 
    172   $cmd = "java -jar $jar_path"; 
     172  $args = ' -port ' . sfConfig::get('sf_selenium_rc_port'); 
     173  $cmd = "java -jar $jar_path" . $args; 
    173174  $cmd = escapeshellcmd($cmd); 
    174175