From 853291c7d656f819366b326d31f01b9c9a132bea Mon Sep 17 00:00:00 2001 From: addshore Date: Sat, 25 Jan 2014 16:21:09 +0100 Subject: [PATCH] Split Timestamp.php into class and exception files Change-Id: I438adfe5479a1017baee8f2b663f3fb2e49c685a --- includes/AutoLoader.php | 4 ++-- includes/{Timestamp.php => MWTimestamp.php} | 5 ----- includes/TimestampException.php | 6 ++++++ .../includes/{TimestampTest.php => MWTimestampTest.php} | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) rename includes/{Timestamp.php => MWTimestamp.php} (99%) create mode 100644 includes/TimestampException.php rename tests/phpunit/includes/{TimestampTest.php => MWTimestampTest.php} (99%) diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index 91fa55fb44..05b37bab2d 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -211,8 +211,8 @@ $wgAutoloadLocalClasses = array( 'StubObject' => 'includes/StubObject.php', 'StubUserLang' => 'includes/StubObject.php', 'TablePager' => 'includes/Pager.php', - 'MWTimestamp' => 'includes/Timestamp.php', - 'TimestampException' => 'includes/Timestamp.php', + 'MWTimestamp' => 'includes/MWTimestamp.php', + 'TimestampException' => 'includes/TimestampException.php', 'Title' => 'includes/Title.php', 'TitleArray' => 'includes/TitleArray.php', 'TitleArrayFromResult' => 'includes/TitleArray.php', diff --git a/includes/Timestamp.php b/includes/MWTimestamp.php similarity index 99% rename from includes/Timestamp.php rename to includes/MWTimestamp.php index c1c64551e9..9de2c0ab6c 100644 --- a/includes/Timestamp.php +++ b/includes/MWTimestamp.php @@ -389,8 +389,3 @@ class MWTimestamp { return new self( $ts ); } } - -/** - * @since 1.20 - */ -class TimestampException extends MWException {} diff --git a/includes/TimestampException.php b/includes/TimestampException.php new file mode 100644 index 0000000000..18f58fd7cb --- /dev/null +++ b/includes/TimestampException.php @@ -0,0 +1,6 @@ +