Skip to content

Commit dc7ec8a

Browse files
committed
Using FQ name for PHP_VERSION_ID
1 parent 7602ecd commit dc7ec8a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Tests/Constraints/AbstractComparisonValidatorTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ abstract class AbstractComparisonValidatorTestCase extends AbstractConstraintVal
3636
{
3737
protected static function addPhp5Dot5Comparisons(array $comparisons)
3838
{
39-
if (PHP_VERSION_ID < 50500) {
39+
if (\PHP_VERSION_ID < 50500) {
4040
return $comparisons;
4141
}
4242

@@ -130,7 +130,7 @@ public function testInvalidComparisonToValue($dirtyValue, $dirtyValueAsString, $
130130
if ($dirtyValue instanceof \DateTime || $dirtyValue instanceof \DateTimeInterface) {
131131
IntlTestHelper::requireIntl($this, '57.1');
132132

133-
if (PHP_VERSION_ID < 50304 && !(extension_loaded('intl') && method_exists('IntlDateFormatter', 'setTimeZone'))) {
133+
if (\PHP_VERSION_ID < 50304 && !(extension_loaded('intl') && method_exists('IntlDateFormatter', 'setTimeZone'))) {
134134
$this->markTestSkipped('Intl supports formatting DateTime objects since 5.3.4');
135135
}
136136
}

Tests/Constraints/IdenticalToValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function provideValidComparisons()
6464
array(null, 1),
6565
);
6666

67-
if (PHP_VERSION_ID >= 50500) {
67+
if (\PHP_VERSION_ID >= 50500) {
6868
$immutableDate = new \DateTimeImmutable('2000-01-01');
6969
$comparisons[] = array($immutableDate, $immutableDate);
7070
}

Tests/Constraints/RangeValidatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function getTenthToTwentiethMarch2014()
194194
array(new \DateTime('March 20, 2014')),
195195
);
196196

197-
if (PHP_VERSION_ID >= 50500) {
197+
if (\PHP_VERSION_ID >= 50500) {
198198
$tests[] = array(new \DateTimeImmutable('March 10, 2014'));
199199
$tests[] = array(new \DateTimeImmutable('March 15, 2014'));
200200
$tests[] = array(new \DateTimeImmutable('March 20, 2014'));
@@ -216,7 +216,7 @@ public function getSoonerThanTenthMarch2014()
216216
array(new \DateTime('March 9, 2014'), 'Mar 9, 2014, 12:00 AM'),
217217
);
218218

219-
if (PHP_VERSION_ID >= 50500) {
219+
if (\PHP_VERSION_ID >= 50500) {
220220
$tests[] = array(new \DateTimeImmutable('March 20, 2013'), 'Mar 20, 2013, 12:00 AM');
221221
$tests[] = array(new \DateTimeImmutable('March 9, 2014'), 'Mar 9, 2014, 12:00 AM');
222222
}
@@ -237,7 +237,7 @@ public function getLaterThanTwentiethMarch2014()
237237
array(new \DateTime('March 9, 2015'), 'Mar 9, 2015, 12:00 AM'),
238238
);
239239

240-
if (PHP_VERSION_ID >= 50500) {
240+
if (\PHP_VERSION_ID >= 50500) {
241241
$tests[] = array(new \DateTimeImmutable('March 21, 2014'), 'Mar 21, 2014, 12:00 AM');
242242
$tests[] = array(new \DateTimeImmutable('March 9, 2015'), 'Mar 9, 2015, 12:00 AM');
243243
}

0 commit comments

Comments
 (0)