for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace spec\HMLB\UserBundle\Command;
use HMLB\DDD\Entity\Identity;
use HMLB\UserBundle\Command\ChangeEmail;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
/**
* ChangeEmailSpec
*
* @mixin ChangeEmail
* @author Hugues Maignol <[email protected]>
*/
class ChangeEmailSpec extends ObjectBehavior
{
function it_is_initializable()
$id = new Identity();
$this->beConstructedWith('[email protected]', $id);
$this->getEmail()->shouldBe('[email protected]');
$this->getUserId()->shouldBe($id);
$this::messageName()->shouldBe('hmlb_user_change_email');
}