Skip to content

Commit 6dfeb39

Browse files
[ci] Fix tests requirements
1 parent c228b86 commit 6dfeb39

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Tests/Extension/Core/DataTransformer/DateTimeToStringTransformerTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,10 @@ public function testTransformExpectsDateTime()
122122

123123
/**
124124
* @dataProvider dataProvider
125+
* @requires PHP 5.3.7
125126
*/
126127
public function testReverseTransformUsingPipe($format, $input, $output)
127128
{
128-
if (PHP_VERSION_ID < 50307) {
129-
$this->markTestSkipped('Pipe usage requires PHP 5.3.7 or newer.');
130-
}
131-
132129
$reverseTransformer = new DateTimeToStringTransformer('UTC', 'UTC', $format, true);
133130

134131
$output = new \DateTime($output);

Tests/Extension/Core/EventListener/TrimListenerTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,10 @@ public function testTrimSkipNonStrings()
4242

4343
/**
4444
* @dataProvider spaceProvider
45+
* @requires extension mbstring
4546
*/
4647
public function testTrimUtf8Separators($hex)
4748
{
48-
if (!function_exists('mb_convert_encoding')) {
49-
$this->markTestSkipped('The "mb_convert_encoding" function is not available');
50-
}
51-
5249
// Convert hexadecimal representation into binary
5350
// H: hex string, high nibble first (UCS-2BE)
5451
// *: repeat until end of string

0 commit comments

Comments
 (0)