44 : void
45 {
46 $expect = [
47 '.', ',', '-', '/', ' ', ':', 'd', 'jS', 'l', 'D', 'W', 'm', 'F', 'M', 'Y', 'y', 'h','H', 'i', 's', 'a'
48 ];
49 $format = $this->df->custom()
50 ->dot()->comma()->dash()->slash()->space()->colon()
51 ->day()->dayOrdinal()->weekday()->weekdayShort()
52 ->week()->month()->monthSpelled()->monthSpelledShort()
53 ->year()->twoDigitYear()
54 ->hours12()->hours24()->minutes()->seconds()->meridiem()
55 ->get();
56
57 $this->assertEquals(
58 $expect,
59 $format->toArray()
60 );
61
62 $this->assertEquals(
63 implode('', $expect),
64 $format->toString()
65 );
66
67 $this->assertEquals(
68 $format->toString(),
69 (string) $format
70 );
71 }