Ejemplo n.º 1
0
 /**
  * @test
  */
 public function testCreateCode()
 {
     $this->assertNull($this->fixture->getCode());
     $this->fixture->updateAuth();
     $code = $this->fixture->getCode();
     $timestamp = $this->fixture->getLastSent();
     $this->assertNotEmpty($code);
     $this->assertNotEmpty($timestamp);
     sleep(1);
     $this->fixture->updateAuth();
     $this->assertNotEquals($code, $this->fixture->getCode());
     $this->assertNotEquals($timestamp, $this->fixture->getLastSent());
 }