Development

Changeset 19553

You must first sign up to be able to contribute.

Changeset 19553

Show
Ignore:
Timestamp:
06/25/09 17:16:00 (8 months ago)
Author:
fabien
Message:

[event_dispatcher] removed hardcoded list of tests to run

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • components/event_dispatcher/trunk/test/prove.php

    r18732 r19553  
    2828$h->base_dir = realpath(dirname(__FILE__).'/..'); 
    2929 
    30 $h->register(array( 
    31   dirname(__FILE__).'/sfEventTest.php', 
    32   dirname(__FILE__).'/sfEventDispatcherTest.php', 
    33 )); 
     30foreach (new DirectoryIterator(dirname(__FILE__)) as $file) 
     31
     32  if (false !== strpos($file, 'Test.php')) 
     33  { 
     34    $h->register($file->getRealPath()); 
     35  } 
     36
    3437 
    3538exit($h->run() ? 0 : 1); 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.