summaryrefslogtreecommitdiff
path: root/tests/unit/Util
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Util')
-rw-r--r--tests/unit/Util/AllTests.php7
-rw-r--r--tests/unit/Util/TDateTimeStampTest.php3
-rw-r--r--tests/unit/Util/TLoggerTest.php3
-rw-r--r--tests/unit/Util/TSimpleDateFormatterTest.php21
4 files changed, 15 insertions, 19 deletions
diff --git a/tests/unit/Util/AllTests.php b/tests/unit/Util/AllTests.php
index 8ab99a50..a6a217d7 100644
--- a/tests/unit/Util/AllTests.php
+++ b/tests/unit/Util/AllTests.php
@@ -11,13 +11,13 @@ class Util_AllTests {
public static function main() {
PHPUnit_TextUI_TestRunner::run(self::suite());
}
-
+
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('System.Util');
-
+
$suite->addTestSuite('TDateTimeStampTest');
$suite->addTestSuite('TLoggerTest');
-
+
return $suite;
}
}
@@ -25,4 +25,3 @@ class Util_AllTests {
if(PHPUnit_MAIN_METHOD == 'Util_AllTests::main') {
Util_AllTests::main();
}
-?>
diff --git a/tests/unit/Util/TDateTimeStampTest.php b/tests/unit/Util/TDateTimeStampTest.php
index 6ae4b128..37784ef3 100644
--- a/tests/unit/Util/TDateTimeStampTest.php
+++ b/tests/unit/Util/TDateTimeStampTest.php
@@ -7,7 +7,7 @@ Prado::using('System.Util.TDateTimeStamp');
* @package System.Util
*/
class TDateTimeStampTest extends PHPUnit_Framework_TestCase {
-
+
public function testGetTimeStampAndFormat() {
$s = new TDateTimeStamp;
$t = $s->getTimeStamp(0,0,0);
@@ -126,4 +126,3 @@ class TDateTimeStampTest extends PHPUnit_Framework_TestCase {
}
}
-?>
diff --git a/tests/unit/Util/TLoggerTest.php b/tests/unit/Util/TLoggerTest.php
index 49d5d316..03b36c5b 100644
--- a/tests/unit/Util/TLoggerTest.php
+++ b/tests/unit/Util/TLoggerTest.php
@@ -16,11 +16,10 @@ class TLoggerTest extends PHPUnit_Framework_TestCase {
public function testLog() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testGetLogs() {
throw new PHPUnit_Framework_IncompleteTestError();
}
}
-?>
diff --git a/tests/unit/Util/TSimpleDateFormatterTest.php b/tests/unit/Util/TSimpleDateFormatterTest.php
index b989fcf5..ce6f1234 100644
--- a/tests/unit/Util/TSimpleDateFormatterTest.php
+++ b/tests/unit/Util/TSimpleDateFormatterTest.php
@@ -16,49 +16,48 @@ class TSimpleDateFormatterTest extends PHPUnit_Framework_TestCase {
public function testConstruct() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testPattern() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testCharset() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testFormat() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testMonthPattern() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testDayPattern() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testYearPattern() {
$formatter = new TSimpleDateFormatter("yyyy");
self::assertEquals("2008-01-01", date('Y-m-d', $formatter->parse("2008")));
}
-
+
public function testMissingYearPattern() {
$formatter = new TSimpleDateFormatter("MM/dd");
self::assertEquals(date("Y-10-22"), date('Y-m-d', $formatter->parse("10/22")));
}
-
+
public function testDayMonthYearOrdering() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testIsValidDate() {
throw new PHPUnit_Framework_IncompleteTestError();
}
-
+
public function testParse() {
throw new PHPUnit_Framework_IncompleteTestError();
}
}
-?>