PHP Class spec\GrumPHP\Collection\FilesCollectionSpec

Inheritance: extends PhpSpec\ObjectBehavior
Afficher le fichier Open project: phpro/grumphp

Protected Properties

Свойство Type Description
$tempFile string

Méthodes publiques

Méthode Description
it_is_an_array_collection ( )
it_is_initializable ( )
it_should_filter_by_a_list_of_files ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_filter_by_callback ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_filter_by_date ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_filter_by_extension ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_filter_by_name ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_filter_by_not_name ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_filter_by_not_path ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_filter_by_path ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_filter_by_paths ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_filter_by_size ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
it_should_return_an_empty_list_when_filtering_by_no_extension ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
let ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
letgo ( )

Method Details

it_is_an_array_collection() public méthode

it_is_initializable() public méthode

public it_is_initializable ( )

it_should_filter_by_a_list_of_files() public méthode

public it_should_filter_by_a_list_of_files ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_filter_by_callback() public méthode

public it_should_filter_by_callback ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_filter_by_date() public méthode

public it_should_filter_by_date ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_filter_by_extension() public méthode

public it_should_filter_by_extension ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_filter_by_name() public méthode

public it_should_filter_by_name ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_filter_by_not_name() public méthode

public it_should_filter_by_not_name ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_filter_by_not_path() public méthode

public it_should_filter_by_not_path ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_filter_by_path() public méthode

public it_should_filter_by_path ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_filter_by_paths() public méthode

public it_should_filter_by_paths ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_filter_by_size() public méthode

public it_should_filter_by_size ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

it_should_return_an_empty_list_when_filtering_by_no_extension() public méthode

public it_should_return_an_empty_list_when_filtering_by_no_extension ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

let() public méthode

public let ( Symfony\Component\Finder\SplFileInfo $file1, Symfony\Component\Finder\SplFileInfo $file2 )
$file1 Symfony\Component\Finder\SplFileInfo
$file2 Symfony\Component\Finder\SplFileInfo

letgo() public méthode

public letgo ( )

Property Details

$tempFile protected_oe property

protected string $tempFile
Résultat string