From f3cd1624c3a8001ed0e1463a7d9f3f3b91c69a86 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 13 Apr 2015 11:08:38 +0800 Subject: [PATCH] MDL-49828 timezones: Correct typo in unit tests --- lib/tests/moodlelib_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/moodlelib_test.php b/lib/tests/moodlelib_test.php index cd40c1b361822..f7fbb5f1f3539 100644 --- a/lib/tests/moodlelib_test.php +++ b/lib/tests/moodlelib_test.php @@ -1364,7 +1364,7 @@ public function test_dst_changes() { // DST switching in Prague. // From 2AM to 3AM in 1989. $date = new DateTime('1989-03-26T01:59:00+01:00'); - $this->assertSAMe('Sunday, 26 March 1989, 1:59', userdate($date->getTimestamp(), '%A, %d %B %Y,%k:%M', 'Europe/Prague')); + $this->assertSame('Sunday, 26 March 1989, 1:59', userdate($date->getTimestamp(), '%A, %d %B %Y,%k:%M', 'Europe/Prague')); $date = new DateTime('1989-03-26T02:01:00+01:00'); $this->assertSame('Sunday, 26 March 1989, 3:01', userdate($date->getTimestamp(), '%A, %d %B %Y,%k:%M', 'Europe/Prague')); // From 3AM to 2AM in 1989 - not the same as the west Europe.