Development

Changeset 19552

You must first sign up to be able to contribute.

Changeset 19552

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

[yaml] removed hardcoded list of tests to run

Files:

Legend:

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

    r18732 r19552  
    2828$h->base_dir = realpath(dirname(__FILE__).'/..'); 
    2929 
    30 $h->register(array( 
    31   dirname(__FILE__).'/sfYamlInlineTest.php', 
    32   dirname(__FILE__).'/sfYamlDumperTest.php', 
    33   dirname(__FILE__).'/sfYamlParserTest.php', 
    34 )); 
     30foreach (new DirectoryIterator(dirname(__FILE__)) as $file) 
     31
     32  if (false !== strpos($file, 'Test.php')) 
     33  { 
     34    $h->register($file->getRealPath()); 
     35  } 
     36
    3537 
    3638exit($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.