コード例 #1
0
ファイル: CalendarTest.php プロジェクト: emanmks/calendar
 public function testShowingNameOfMonth()
 {
     $cal = new Calendar();
     $this->assertEquals("June", $cal->showMonth(6));
 }
コード例 #2
0
ファイル: index.php プロジェクト: emanmks/calendar
echo $year;
?>
</h1>

		<hr/>

		<?php 
foreach (array_chunk($months, 3) as $rows) {
    ?>
			<div class="row">
			<?php 
    foreach ($rows as $month) {
        ?>
				<div class="col-lg-4">
					<div class="well text-center text-primary"><?php 
        echo $calendar->showMonth($month);
        ?>
</div>
					<table class="table table-bordered">
						<?php 
        echo $calendar->generateCalendarHeader($firstDay);
        ?>
						<?php 
        echo $calendar->generateCalendarContent($month, $firstDay);
        ?>
					</table>
				</div>
			<?php 
    }
    ?>
			</div>