Skip to content

Commit 79f2cd2

Browse files
committed
Adding failing test
1 parent a1de956 commit 79f2cd2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

generator/tests/GeneratedFilesTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,18 @@ public function testPregSplit()
8888
$keywords = preg_split("/[\s,]+/", "hypertext language, programming", null);
8989
$this->assertSame(['hypertext', 'language', 'programming'], $keywords);
9090
}
91+
92+
93+
/**
94+
* Tests that parameters with "time()" default value are correctly handled.
95+
*/
96+
public function testStrtotime()
97+
{
98+
require_once __DIR__.'/../../generated/datetime.php';
99+
require_once __DIR__.'/../../lib/Exceptions/SafeExceptionInterface.php';
100+
require_once __DIR__.'/../../lib/Exceptions/AbstractSafeException.php';
101+
require_once __DIR__.'/../../generated/Exceptions/DatetimeException.php';
102+
103+
$this->assertSame(\strtotime('+1 day'), strtotime('+1 day'));
104+
}
91105
}

0 commit comments

Comments
 (0)