comparison vendor/symfony/validator/Test/ConstraintValidatorTestCase.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
27 * 27 *
28 * @author Bernhard Schussek <bschussek@gmail.com> 28 * @author Bernhard Schussek <bschussek@gmail.com>
29 */ 29 */
30 abstract class ConstraintValidatorTestCase extends TestCase 30 abstract class ConstraintValidatorTestCase extends TestCase
31 { 31 {
32 use TestCaseSetUpTearDownTrait;
33
32 /** 34 /**
33 * @var ExecutionContextInterface 35 * @var ExecutionContextInterface
34 */ 36 */
35 protected $context; 37 protected $context;
36 38
46 protected $root; 48 protected $root;
47 protected $propertyPath; 49 protected $propertyPath;
48 protected $constraint; 50 protected $constraint;
49 protected $defaultTimezone; 51 protected $defaultTimezone;
50 52
51 protected function setUp() 53 private function doSetUp()
52 { 54 {
53 $this->group = 'MyGroup'; 55 $this->group = 'MyGroup';
54 $this->metadata = null; 56 $this->metadata = null;
55 $this->object = null; 57 $this->object = null;
56 $this->value = 'InvalidValue'; 58 $this->value = 'InvalidValue';
68 \Locale::setDefault('en'); 70 \Locale::setDefault('en');
69 71
70 $this->setDefaultTimezone('UTC'); 72 $this->setDefaultTimezone('UTC');
71 } 73 }
72 74
73 protected function tearDown() 75 private function doTearDown()
74 { 76 {
75 $this->restoreDefaultTimezone(); 77 $this->restoreDefaultTimezone();
76 } 78 }
77 79
78 protected function setDefaultTimezone($defaultTimezone) 80 protected function setDefaultTimezone($defaultTimezone)