12 namespace Symfony\Component\Finder\Tests\Iterator;
22 $this->fail(
'__construct() throws an \InvalidArgumentException exception if the mode is not valid');
23 }
catch (\Exception $e) {
24 $this->assertInstanceOf(
'InvalidArgumentException', $e,
'__construct() throws an \InvalidArgumentException exception if the mode is not valid');
33 if (!is_callable($mode)) {
36 if (
'\\' === DIRECTORY_SEPARATOR) {
37 touch(self::toAbsolute(
'.git'));
39 file_get_contents(self::toAbsolute(
'.git'));
42 file_get_contents(self::toAbsolute(
'.bar'));
45 file_put_contents(self::toAbsolute(
'test.php'),
'foo');
47 file_put_contents(self::toAbsolute(
'test.py'),
'foo');
50 file_put_contents(self::toAbsolute(
'test.php'),
'foo');
52 file_put_contents(self::toAbsolute(
'test.py'),
'foo');
66 $this->markTestSkipped(
'Sorting by atime or ctime is not supported on Windows');
104 $customComparison = array(
118 $sortByAccessedTime = array(
120 array(
'foo/bar.tmp',
'test.php'),
136 $sortByChangedTime = array(
152 $sortByModifiedTime = array(