SAML2\Certificate\KeyLoaderTest::loading_a_certificate_file_from_configuration_creates_key PHP Method

loading_a_certificate_file_from_configuration_creates_key() public method

    public function loading_a_certificate_file_from_configuration_creates_key()
    {
        $file = dirname(__FILE__) . '/File/example.org.crt';
        $this->configurationMock->shouldReceive('getKeys')->atMost()->once()->andReturnNull()->shouldReceive('getCertificateData')->atMost()->once()->andReturnNull()->shouldReceive('getCertificateFile')->once()->andReturn($file);
        $loadedKeys = $this->keyLoader->loadKeysFromConfiguration($this->configurationMock);
        $this->assertCount(1, $loadedKeys);
    }