for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Spec\Kreta\TaskManager\Domain\Model\Organization;
use Kreta\SharedKernel\Domain\Model\Identity\EmailAddress;
use Kreta\SharedKernel\Domain\Model\Identity\Username;
use Kreta\TaskManager\Domain\Model\Organization\OrganizationParticipant;
use Kreta\TaskManager\Domain\Model\Organization\OrganizationParticipantId;
use Kreta\TaskManager\Domain\Model\Organization\Participant;
use PhpSpec\ObjectBehavior;
class OrganizationParticipantSpec extends ObjectBehavior
{
function let(OrganizationParticipantId $id, EmailAddress $email, Username $username)
$this->beConstructedWith($id, $email, $username);
}
function it_is_initializable()
$this->shouldHaveType(OrganizationParticipant::class);
function it_extends_participant()
$this->shouldHaveType(Participant::class);