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
CharsetConverterTest.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Core\Tests\Unit\Charset
;
3
22
class
CharsetConverterTest
extends
\TYPO3\CMS\Core\Tests\UnitTestCase
{
23
27
protected
$fixture
= NULL;
28
29
public
function
setUp
() {
30
$this->fixture = new \TYPO3\CMS\Core\Charset\CharsetConverter();
31
}
32
34
// Tests concerning substr
36
40
public
function
substrForEmptyStringAndNonZeroLengthReturnsEmptyString
() {
41
$this->assertSame(
''
, $this->fixture->substr(
'utf-8'
,
''
, 0, 42));
42
}
43
45
// Tests concerning utf8_strlen
47
50
public
function
utf8_strlenForNonEmptyAsciiOnlyStringReturnsNumberOfCharacters
() {
51
$this->assertEquals(10, $this->fixture->utf8_strlen(
'good omens'
));
52
}
53
54
}
TYPO3\CMS\Core\Tests\Unit\Charset\CharsetConverterTest\$fixture
$fixture
Definition:
CharsetConverterTest.php:27
TYPO3\CMS\Core\Tests\Unit\Charset
Definition:
CharsetConverterTest.php:2
TYPO3\CMS\Core\Tests\Unit\Charset\CharsetConverterTest\setUp
setUp()
Definition:
CharsetConverterTest.php:29
TYPO3\CMS\Core\Tests\Unit\Charset\CharsetConverterTest\utf8_strlenForNonEmptyAsciiOnlyStringReturnsNumberOfCharacters
utf8_strlenForNonEmptyAsciiOnlyStringReturnsNumberOfCharacters()
Definition:
CharsetConverterTest.php:50
TYPO3\CMS\Core\Tests\Unit\Charset\CharsetConverterTest\substrForEmptyStringAndNonZeroLengthReturnsEmptyString
substrForEmptyStringAndNonZeroLengthReturnsEmptyString()
Definition:
CharsetConverterTest.php:40
TYPO3\CMS\Core\Tests\UnitTestCase
Definition:
UnitTestCase.php:26
TYPO3\CMS\Core\Tests\Unit\Charset\CharsetConverterTest
Definition:
CharsetConverterTest.php:22
typo3
sysext
core
Tests
Unit
Charset
CharsetConverterTest.php
Generated on Wed Aug 7 2019 09:52:23 for TYPO3 CMS by
1.8.13