Changeset 11032 for plugins/sfHighlightPlugin
- Timestamp:
- 08/22/08 02:55:45 (3 months ago)
- Files:
-
- plugins/sfHighlightPlugin/trunk/lib/highlight/xfHighlightToken.class.php (modified) (2 diffs)
- plugins/sfHighlightPlugin/trunk/test/bin/coverage.php (modified) (1 diff)
- plugins/sfHighlightPlugin/trunk/test/bin/prove.php (modified) (1 diff)
- plugins/sfHighlightPlugin/trunk/test/bootstrap/unit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfHighlightPlugin/trunk/lib/highlight/xfHighlightToken.class.php
r8994 r11032 8 8 */ 9 9 10 // create an xfTokenInterface if unavailable from sfSearch11 // this is neccessary to remove the dependency on sfSearch12 if (!interface_exists('xfTokenInterface', true))13 {14 /**15 * Token interface to achieve duck typing16 *17 * @package sfHighlight18 * @subpackage Highlight19 * @author Carl Vondrick20 * @see sfSearch's xfTokenInterface21 */22 interface xfTokenInterface23 {24 }25 }26 27 10 /** 28 11 * The highlight token. … … 32 15 * @author Carl Vondrick 33 16 */ 34 final class xfHighlightToken implements xfTokenInterface17 final class xfHighlightToken 35 18 { 36 19 /** plugins/sfHighlightPlugin/trunk/test/bin/coverage.php
r9354 r11032 8 8 */ 9 9 10 require dirname(__FILE__) . '/../../../sfSearchPlugin/test/bin/suite.php'; 10 require dirname(__FILE__) . '/../bootstrap/unit.php'; 11 require 'util/sfFinder.class.php'; 11 12 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 8 8 */ 9 9 10 require dirname(__FILE__) . '/../../../sfSearchPlugin/test/bin/suite.php'; 10 require dirname(__FILE__) . '/../bootstrap/unit.php'; 11 require 'util/sfFinder.class.php'; 11 12 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 8 8 */ 9 9 10 require dirname(__FILE__) . '/../../../sfSearchPlugin/test/bootstrap/unit.php';10 define('SF_LIB_DIR', '/home/carl/symfony/1.1/lib'); 11 11 12 set_include_path(get_include_path() . PATH_SEPARATOR . SF_LIB_DIR); 12 13 set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../../lib'); 13 14 set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../../test'); 14 15 16 require 'vendor/lime/lime.php';