Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
addPhp5Dot5Comparisons example
$this
->
assertNoViolation
(
)
;
}
public
static
function
provideAllValidComparisons
(
)
: array
{
// The provider runs before setUp(), so we need to manually fix // the default timezone
$timezone
=
date_default_timezone_get
(
)
;
date_default_timezone_set
(
'UTC'
)
;
$comparisons
= self::
addPhp5Dot5Comparisons
(
static
::
provideValidComparisons
(
)
)
;
date_default_timezone_set
(
$timezone
)
;
return
$comparisons
;
}
/** * @dataProvider provideValidComparisonsToPropertyPath */
public
function
testValidComparisonToPropertyPath
(
$comparedValue
)
{