aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DateTimeFormatterTest.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2020-04-11 08:21:35 +0200
committerGitHub <noreply@github.com>2020-04-11 08:21:35 +0200
commitb5a30d5cd6b53831c0d6d2fd074dc0000fa811de (patch)
tree386f3cb5df4630a1e87dae706667772e590596b8 /tests/lib/DateTimeFormatterTest.php
parent97de425a171adf9194dae75eede74cf9f3356cc8 (diff)
parenteea282ccc0d9dfae2d321efddce99cdb18158338 (diff)
downloadnextcloud-server-b5a30d5cd6b53831c0d6d2fd074dc0000fa811de.tar.gz
nextcloud-server-b5a30d5cd6b53831c0d6d2fd074dc0000fa811de.zip
Merge pull request #20426 from nextcloud/techdebt/psr2
It is done
Diffstat (limited to 'tests/lib/DateTimeFormatterTest.php')
-rw-r--r--tests/lib/DateTimeFormatterTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/DateTimeFormatterTest.php b/tests/lib/DateTimeFormatterTest.php
index 1470f3b6bf4..2beb89654f6 100644
--- a/tests/lib/DateTimeFormatterTest.php
+++ b/tests/lib/DateTimeFormatterTest.php
@@ -11,12 +11,12 @@ namespace Test;
class DateTimeFormatterTest extends TestCase {
/** @var \OC\DateTimeFormatter */
protected $formatter;
- static protected $oneMinute = 60;
- static protected $oneHour = 3600;
- static protected $oneDay;
- static protected $oneYear;
+ protected static $oneMinute = 60;
+ protected static $oneHour = 3600;
+ protected static $oneDay;
+ protected static $oneYear;
- static protected $defaultTimeZone;
+ protected static $defaultTimeZone;
public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();
@@ -176,7 +176,7 @@ class DateTimeFormatterTest extends TestCase {
}
- function testFormatDateWithInvalidTZ() {
+ public function testFormatDateWithInvalidTZ() {
$this->expectException(\Exception::class);
$this->formatter->formatDate(1350129205, 'long', new \DateTimeZone('Mordor/Barad-dûr'));