StackFormation\Tests\ProfileManagerTest::testEncryptedFileWithWrongVaultVars PHP Method

testEncryptedFileWithWrongVaultVars() public method

    public function testEncryptedFileWithWrongVaultVars()
    {
        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=sadsad");
        putenv("VAULT_ENCRYPTION_KEY=asdsad");
        chdir(FIXTURE_ROOT . 'ProfileManager/fixture_encrpyted');
        $this->profileManager->listAllProfiles();
    }