use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Mapping\Loader\AttributeLoader;
/**
* @author Javier Spagnoletti <phansys@gmail.com>
*/
class TimezoneTest extends TestCase
{ public function testValidTimezoneConstraints() { new Timezone();
new Timezone(['zone' => \DateTimeZone::ALL
]);
new Timezone(\DateTimeZone::ALL_WITH_BC
);
new Timezone([ 'zone' => \DateTimeZone::PER_COUNTRY,
'countryCode' => 'AR',
]);
$this->
addToAssertionCount(1
);
} public function testExceptionForGroupedTimezonesByCountryWithWrongZone() {