Ejemplo n.º 1
0
  function test_recursive_find()
  {
  	$this->_create_file_system();
  	 
  	$res = dir :: recursive_find(TEST_DIR_ABSOLUTE_PATH . '/tmp/', 'test\d_1');
	sort($res);

  	$this->assertEqual(
  		$res, 
  		array(
  			dir :: clean_path(TEST_DIR_ABSOLUTE_PATH . '/tmp/test1_1'),
  			dir :: clean_path(TEST_DIR_ABSOLUTE_PATH . '/tmp/wow/hey/test3_1'),
  			dir :: clean_path(TEST_DIR_ABSOLUTE_PATH . '/tmp/wow/test2_1'),
  		)
  	);
  	
  	$this->_remove_file_system();
  }