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