Testing_DocTest
[ class tree: Testing_DocTest ] [ index: Testing_DocTest ] [ all elements ]

Class: Testing_DocTest_Finder_Default

Source Location: /Testing_DocTest-0.6.0/Testing/DocTest/Finder/Default.php

Class Overview


DocTest Finder.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2008 David JEAN LOUIS

Methods


Inherited Variables

Inherited Methods


Class Details

[line 63]
DocTest Finder.

The finder's job is to find all files given an array of pathes that can contains shell wildcards.

  1.  // flags: ELLIPSIS
  2.  $finder = new Testing_DocTest_Finder_Default();
  3.  $base   is_dir('@php_dir@''@php_dir@/Testing' 'Testing';
  4.  $files  $finder->find(array(
  5.      $base '/DocTest/Exception.php',
  6.      $base '/D*.php'
  7.  ));
  8.  print_r($files);
  9.  
  10.  // expects:
  11.  // Array
  12.  // (
  13.  //     [0] => [...]Exception.php
  14.  //     [1] => [...]DocTest.php
  15.  // )



[ Top ]


Method Detail

find   [line 78]

array find( array $pathes)

Find all files matching the given files and/or directories and return an array of file pathes (pathes are absolute, using the realpath function).
  • Return: an array of files with their realpathes
  • Access: public

Parameters:

array   $pathes   —  an array of files and/or directories, glob syntax is supported, ie. you can pass arrays like this: array('file1.php', '{dir2,dir3}/*.php')

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:52:26 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.