1<?
php declare(strict_types=1);
3require_once(__DIR__ .
"/../../../../../libs/composer/vendor/autoload.php");
12 $this->assertEquals($spa->getId(), 123);
22 $this->assertEquals($spa->getRootId(), 321);
31 $this->assertEquals($spa->getUserId(), 321);
41 $now =
new DateTimeImmutable()
43 $this->assertEquals($spa->getLastChangeBy(), 6);
44 $this->assertEquals($spa->getLastChange()->format(
'Y-m-d H:i:s'), $now->format(
'Y-m-d H:i:s'));
53 $dl = DateTimeImmutable::createFromFormat(
'Ymd',
'20201001');
55 $this->assertEquals($spa->getRestartDate()->format(
'Ymd'),
'20201001');
56 $this->assertEquals($spa->getRestartedAssignmentId(), 321);
An exception for terminatinating execution or to throw for unit testing.
testWithLastChange()
@depends testInitAndId
testRootId()
@depends testInitAndId
testUserId()
@depends testInitAndId
testRestartDate()
@depends testInitAndId
Represents one assignment of the user to a program tree.