/** * @test */ public function createNewKeyPairCalledTwoTimesReturnsSameKeyPairInstance() { $keyPair1 = $this->subject->createNewKeyPair(); $this->assertNotNull($keyPair1, 'Test fails because of broken environment: PHP OpenSSL extension is not working properly.'); $this->assertSame($keyPair1, $this->subject->createNewKeyPair()); }
/** * @test */ public function createNewKeyPairCalledTwoTimesReturnsSameKeyPairInstance() { $this->assertSame($this->subject->createNewKeyPair(), $this->subject->createNewKeyPair()); }