Development

Changeset 11032 for plugins/sfHighlightPlugin

You must first sign up to be able to contribute.

Show
Ignore:
Timestamp:
08/22/08 02:55:45 (3 months ago)
Author:
Carl.Vondrick
Message:

sfHighlight: removed test dependency on sfSearch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfHighlightPlugin/trunk/lib/highlight/xfHighlightToken.class.php

    r8994 r11032  
    88 */ 
    99 
    10 // create an xfTokenInterface if unavailable from sfSearch 
    11 // this is neccessary to remove the dependency on sfSearch 
    12 if (!interface_exists('xfTokenInterface', true)) 
    13 { 
    14   /** 
    15    * Token interface to achieve duck typing 
    16    * 
    17    * @package sfHighlight 
    18    * @subpackage Highlight 
    19    * @author Carl Vondrick 
    20    * @see sfSearch's xfTokenInterface 
    21    */ 
    22   interface xfTokenInterface 
    23   { 
    24   } 
    25 } 
    26  
    2710/** 
    2811 * The highlight token. 
     
    3215 * @author Carl Vondrick 
    3316 */ 
    34 final class xfHighlightToken implements xfTokenInterface 
     17final class xfHighlightToken  
    3518{ 
    3619  /** 
  • plugins/sfHighlightPlugin/trunk/test/bin/coverage.php

    r9354 r11032  
    88 */ 
    99 
    10 require dirname(__FILE__) . '/../../../sfSearchPlugin/test/bin/suite.php'; 
     10require dirname(__FILE__) . '/../bootstrap/unit.php'; 
     11require 'util/sfFinder.class.php'; 
    1112 
    12 $t = new lime_search(dirname(__FILE__) . '/../../', new lime_output_color); 
    13 $t->coverage(); 
     13$h = new lime_harness(new lime_output_color); 
     14$h->base_dir = dirname(__FILE__) . '/../..'; 
     15$h->register(sfFinder::type('file')->name('xf*Test.php')->in(glob($h->base_dir . '/test/'))); 
     16 
     17$c = new lime_coverage($h); 
     18$c->extension = '.php'; 
     19$c->verbose = true; 
     20$c->base_dir = $h->base_dir . '/lib/'; 
     21 
     22$c->register(sfFinder::type('file')->name('*.class.php')->prune('vendor')->in($c->base_dir)); 
     23$c->run(); 
  • plugins/sfHighlightPlugin/trunk/test/bin/prove.php

    r9354 r11032  
    88 */ 
    99 
    10 require dirname(__FILE__) . '/../../../sfSearchPlugin/test/bin/suite.php'; 
     10require dirname(__FILE__) . '/../bootstrap/unit.php'; 
     11require 'util/sfFinder.class.php'; 
    1112 
    12 $t = new lime_search(dirname(__FILE__) . '/../../', new lime_output_color); 
    13 $t->prove(); 
     13$h = new lime_harness(new lime_output_color); 
     14$h->base_dir = dirname(__FILE__) . '/../..'; 
     15$h->register(sfFinder::type('file')->name('xf*Test.php')->in(glob($h->base_dir . '/test/'))); 
     16$h->run(); 
  • plugins/sfHighlightPlugin/trunk/test/bootstrap/unit.php

    r8994 r11032  
    88 */ 
    99 
    10 require dirname(__FILE__) . '/../../../sfSearchPlugin/test/bootstrap/unit.php'
     10define('SF_LIB_DIR', '/home/carl/symfony/1.1/lib')
    1111 
     12set_include_path(get_include_path() . PATH_SEPARATOR . SF_LIB_DIR); 
    1213set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../../lib'); 
    1314set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../../test'); 
    1415 
     16require 'vendor/lime/lime.php';