TYPO3 CMS  TYPO3_6-2
PhpBackendTest.php
Go to the documentation of this file.
1 <?php
3 
18 
28  protected $subject = NULL;
29 
30  public function setUp() {
31  $this->subject = new PhpBackend();
32  }
33 
38  $keyPair = $this->subject->createNewKeyPair();
39  $this->assertNotNull($keyPair, 'Test fails because of broken environment: PHP OpenSSL extension is not working properly.');
40  $this->assertTrue($keyPair->isReady());
41  }
42 
47  $keyPair1 = $this->subject->createNewKeyPair();
48  $this->assertNotNull($keyPair1, 'Test fails because of broken environment: PHP OpenSSL extension is not working properly.');
49  $this->assertSame(
50  $keyPair1,
51  $this->subject->createNewKeyPair()
52  );
53  }
54 
55 }