StackFormation\Tests\ProfileManagerTest::testEncryptedFileWithoutVaultVars PHP Метод

testEncryptedFileWithoutVaultVars() публичный Метод

    public function testEncryptedFileWithoutVaultVars()
    {
        if (!class_exists('\\Vault\\Vault')) {
            $this->markTestSkipped('aoepeople/vault must be installed to run this test');
        }
        $this->setExpectedException('Exception', 'Error decrypting profiles.yml.encrypted');
        putenv("VAULT_MAC_KEY=");
        putenv("VAULT_ENCRYPTION_KEY=");
        chdir(FIXTURE_ROOT . 'ProfileManager/fixture_encrpyted');
        $this->profileManager->listAllProfiles();
    }