Example #1
0
 public function testNameDay()
 {
     $date = new \DateTime('2015-09-11T00:00:00+0000');
     $this->assertEquals('Dennis/Denisa', NameDays::getNameDay($date));
 }
Example #2
0
<?php

require "../vendor/autoload.php";
use Defr\NameDays;
$today = NameDays::getNameDay();
$tomorrow = NameDays::getNameDay(new \DateTime('tomorrow'));
echo sprintf('Dnes má svátek %s, zítra %s', $today, $tomorrow);