Skip to content

Commit 5d39f71

Browse files
committed
Adds placeholder test for timestampToFlexiDate
Introduces an incomplete unit test for the `timestampToFlexiDate` method in `DateTest`. This test is marked as incomplete to indicate that implementation is pending. Removes commented-out placeholder test for the same method in `RWTest` to avoid redundancy and maintain code clarity.
1 parent 11ce634 commit 5d39f71

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

tests/src/AbraFlexi/DateTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,16 @@ public function testToString(): void
4747
{
4848
$this->assertEquals(date('Y-m-d'), $this->object->__toString());
4949
}
50+
51+
/**
52+
* @covers \AbraFlexi\Date::timestampToFlexiDate
53+
*
54+
* @todo Implement testtimestampToFlexiDate().
55+
*/
56+
public function testtimestampToFlexiDate(): void
57+
{
58+
$this->assertEquals('', $this->object->timestampToFlexiDate());
59+
// Remove the following lines when you implement this test.
60+
$this->markTestIncomplete('This test has not been implemented yet.');
61+
}
5062
}

tests/src/AbraFlexi/RWTest.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -172,20 +172,9 @@ protected function tearDown(): void
172172
// $this->markTestIncomplete('This test has not been implemented yet.');
173173
// }
174174
//
175-
// /**
176-
// * @covers \AbraFlexi\RW::timestampToFlexiDate
177-
// *
178-
// * @todo Implement testtimestampToFlexiDate().
179-
// */
180-
// public function testtimestampToFlexiDate(): void
181-
// {
182-
// $this->assertEquals('', $this->object->timestampToFlexiDate());
183-
// // Remove the following lines when you implement this test.
184-
// $this->markTestIncomplete('This test has not been implemented yet.');
185-
// }
186175
//
187176
// /**
188-
// * @covers \AbraFlexi\RW::timestampToFlexiDateTime
177+
// * @covers \AbraFlexi\Date::timestampToFlexiDateTime
189178
// *
190179
// * @todo Implement testtimestampToFlexiDateTime().
191180
// */

0 commit comments

Comments
 (0)