TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
AbstractImportTestCase.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Impexp\Tests\Functional\Import
;
3
17
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
18
19
require_once __DIR__ .
'/../../../../core/Tests/Functional/DataHandling/AbstractDataHandlerActionTestCase.php'
;
20
24
abstract
class
AbstractImportTestCase
extends
\TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
{
25
29
protected
$coreExtensionsToLoad
= array(
'impexp'
);
30
34
protected
$import
;
35
42
protected
$testFilesToDelete
= array();
43
50
public
function
setUp
() {
51
parent::setUp();
52
53
$this->
import
=
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance
(
'TYPO3\\CMS\\Impexp\\ImportExport'
);
54
$this->
import
->init(0,
'import'
);
55
}
56
60
public
function
tearDown
() {
61
foreach
($this->testFilesToDelete as $absoluteFileName) {
62
if
(@is_file($absoluteFileName)) {
63
unlink($absoluteFileName);
64
}
65
}
66
parent::tearDown();
67
}
68
74
protected
function
isCaseSensitiveFilesystem
() {
75
$caseSensitive = TRUE;
76
$path =
GeneralUtility::tempnam
(
'aAbB'
);
77
78
// do the actual sensitivity check
79
if
(@file_exists(strtoupper($path)) && @file_exists(strtolower($path))) {
80
$caseSensitive = FALSE;
81
}
82
83
// clean filesystem
84
unlink($path);
85
return
$caseSensitive;
86
}
87
88
}
GeneralUtility
TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase\$coreExtensionsToLoad
$coreExtensionsToLoad
Definition:
AbstractImportTestCase.php:29
TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase\$testFilesToDelete
$testFilesToDelete
Definition:
AbstractImportTestCase.php:42
TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance
static makeInstance($className)
Definition:
GeneralUtility.php:4424
TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase\tearDown
tearDown()
Definition:
AbstractImportTestCase.php:60
TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase\setUp
setUp()
Definition:
AbstractImportTestCase.php:50
TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase\$import
$import
Definition:
AbstractImportTestCase.php:34
TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase
Definition:
AbstractImportTestCase.php:24
TYPO3\CMS\Core\Utility\GeneralUtility\tempnam
static tempnam($filePrefix, $fileSuffix='')
Definition:
GeneralUtility.php:4056
TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
Definition:
AbstractDataHandlerActionTestCase.php:23
TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase\isCaseSensitiveFilesystem
isCaseSensitiveFilesystem()
Definition:
AbstractImportTestCase.php:74
TYPO3\CMS\Impexp\Tests\Functional\Import
Definition:
AbstractImportTestCase.php:2
typo3
sysext
impexp
Tests
Functional
Import
AbstractImportTestCase.php
Generated on Wed Aug 7 2019 09:52:28 for TYPO3 CMS by
1.8.13