year=2018;months=1}}'; $ins = p_get_instructions($syntax); $info = []; $actual_html = p_render('xhtml', $ins, $info); $expectedHTML = '
2018MTWTFSSMTWTFSSMTWTFSSMTWTFSSMTW
Jan01020304050607080910111213141516171819202122232425262728293031
'; self::assertSame($expectedHTML, $actual_html); } public function test2ndQuarter2018NoMondays(): void { global $INFO; $INFO[ 'namespace' ] = ''; $syntax = '{{yearbox>year=2018;months=4,5,6;weekdays=0,2,3,4,5,6}}'; $ins = p_get_instructions($syntax); $info = []; $actual_html = p_render('xhtml', $ins, $info); $expectedHTML = '
2018SMTWTFSSMTWTFSSMTWTFSSMTWTFSSMTWTFS
Apr01   030405060708   101112131415   171819202122   242526272829                  
May      010203040506   080910111213   151617181920   222324252627   293031      
Jun               010203   050607080910   121314151617   192021222324   2627282930
'; self::assertSame($expectedHTML, $actual_html); } }