File tree 2 files changed +26
-2
lines changed
2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -314,15 +314,23 @@ public function readEdiSegmentDTM($PeriodQualifier)
314
314
*/
315
315
public function readUNBDateTimeOfPpreperation ()
316
316
{
317
- return readUNBDateTimeOfPreperation ();
317
+ return $ this ->readUNBDateTimeOfPreparation ();
318
+ }
319
+
320
+ /**
321
+ * @deprecated
322
+ */
323
+ public function readUNBDateTimeOfPreperation ()
324
+ {
325
+ return $ this ->readUNBDateTimeOfPreparation ();
318
326
}
319
327
320
328
/**
321
329
* get message preparation time
322
330
*
323
331
* @return mixed|string
324
332
*/
325
- public function readUNBDateTimeOfPreperation ()
333
+ public function readUNBDateTimeOfPreparation ()
326
334
{
327
335
328
336
//separate date (YYMMDD) and time (HHMM)
Original file line number Diff line number Diff line change @@ -25,6 +25,14 @@ public function testReadEdiDataValue()
25
25
$ this ->assertEquals ('1 ' , $ unh1 );
26
26
}
27
27
28
+ public function testReadUNBDateTimeOfPpreperation ()
29
+ {
30
+ $ r = new Reader (__DIR__ . "/../files/example.edi " );
31
+
32
+ $ Dt = $ r ->readUNBDateTimeOfPpreperation ();
33
+ $ this ->assertEquals ('2094-01-01 09:50:00 ' , $ Dt );
34
+ }
35
+
28
36
public function testReadUNBDateTimeOfPreperation ()
29
37
{
30
38
$ r = new Reader (__DIR__ . "/../files/example.edi " );
@@ -33,6 +41,14 @@ public function testReadUNBDateTimeOfPreperation()
33
41
$ this ->assertEquals ('2094-01-01 09:50:00 ' , $ Dt );
34
42
}
35
43
44
+ public function testReadUNBDateTimeOfPreparation ()
45
+ {
46
+ $ r = new Reader (__DIR__ . "/../files/example.edi " );
47
+
48
+ $ Dt = $ r ->readUNBDateTimeOfPreparation ();
49
+ $ this ->assertEquals ('2094-01-01 09:50:00 ' , $ Dt );
50
+ }
51
+
36
52
public function testReadUNHmessageType ()
37
53
{
38
54
$ r = new Reader (__DIR__ . "/../files/example.edi " );
You can’t perform that action at this time.
0 commit comments