Issue Bug Closed

#63948RsaAuth-PhpBackendTest causes fatal error with broken openssl config

Stephan Großberndt 12/17/14, 02:14 updated 10/02/18, 11:48

Description

If the openssl environment (on Windows) is not set up correctly (in Install Tool: “PHP OpenSSL extension not working”) the unit test RsaAuth-PhpBackendTest fatals

Fatal error: Call to a member function isReady() on a non-object in D:\typo3\master\typo3\sysext\rsaauth\Tests\Unit\Backend\PhpBackendTest.php on line 39

This happens because $this->subject->createNewKeyPair() returns NULL if something goes wrong.

    public function createNewKeyPairCreatesReadyKeyPair() {
        $this->assertTrue(
            $this->subject->createNewKeyPair()->isReady()
        );
    }

Reviews 2