Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Provider\Email\Generator\CodeGeneratorTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->persister = $this->createMock('Scheb\\TwoFactorBundle\\Model\\PersisterInterface');
        $this->mailer = $this->createMock('Scheb\\TwoFactorBundle\\Mailer\\AuthCodeMailerInterface');
        $this->authCodeManager = new TestableCodeGenerator($this->persister, $this->mailer, 5);
        $this->authCodeManager->testCode = 12345;
    }