PHP Class spec\GrumPHP\Collection\FilesCollectionSpec

Inheritance: extends PhpSpec\ObjectBehavior
Mostrar archivo Open project: phpro/grumphp

Protected Properties

Property Type Description
$tempFile string

Public Methods

Method 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 method

it_is_initializable() public method

public it_is_initializable ( )

it_should_filter_by_a_list_of_files() public method

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 method

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 method

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 method

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 method

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 method

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 method

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 method

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 method

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 method

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 method

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 method

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

letgo() public method

public letgo ( )

Property Details

$tempFile protected_oe property

protected string $tempFile
return string