TYPO3 CMS  TYPO3_6-2
CommandLineBackendTest.php
Go to the documentation of this file.
1 <?php
3 
18 
28  protected $subject = NULL;
29 
30  public function setUp() {
31  if (TYPO3_OS === 'WIN') {
32  $this->markTestSkipped('This test is not available on Windows.');
33  }
34 
35  $this->subject = new CommandLineBackend();
36  }
37 
42  $keyPair = $this->subject->createNewKeyPair();
43  if ($keyPair === NULL) {
44  $this->markTestSkipped('KeyPair could not be generated. Maybe openssl was not found.');
45  }
46 
47  $this->assertTrue($keyPair->isReady());
48  }
49 
54  $keyPair = $this->subject->createNewKeyPair();
55  if ($keyPair === NULL) {
56  $this->markTestSkipped('KeyPair could not be generated. Maybe openssl was not found.');
57  }
58 
59  $this->assertSame(
61  $keyPair->getExponent()
62  );
63  }
64 
69  $this->assertSame(
70  $this->subject->createNewKeyPair(),
71  $this->subject->createNewKeyPair()
72  );
73  }
74 }