From 99b61aeeaf2096f6f804f460ae445c2d35b1178a Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Thu, 29 Dec 2022 09:08:19 +0100 Subject: [PATCH] Removed dead code --- .../RunStaticAnalysisAgainstMutantTest.php | 73 ------------------- 1 file changed, 73 deletions(-) diff --git a/test/unit/Roave/InfectionStaticAnalysisTest/Psalm/RunStaticAnalysisAgainstMutantTest.php b/test/unit/Roave/InfectionStaticAnalysisTest/Psalm/RunStaticAnalysisAgainstMutantTest.php index 66ac1ca..beb81ad 100644 --- a/test/unit/Roave/InfectionStaticAnalysisTest/Psalm/RunStaticAnalysisAgainstMutantTest.php +++ b/test/unit/Roave/InfectionStaticAnalysisTest/Psalm/RunStaticAnalysisAgainstMutantTest.php @@ -107,79 +107,6 @@ function hasMethod(object $input, string $method): bool { file_put_contents($declaredClassSymbolPath, $declaredClassSymbol); file_put_contents($repeatedDeclaredClassSymbolPath, $declaredClassSymbol); - $mutationAttributes = array_combine( - MutationAttributeKeys::ALL, - array_map('strlen', MutationAttributeKeys::ALL), - ); - - $this->mutantWithValidCode = new Mutant( - $validCodePath, - new Mutation( - 'foo', - [], - 'Plus', - $mutationAttributes, - '', - MutatedNode::wrap([]), - 0, - [], - ), - now($validCode), - now(''), - now(''), - ); - - $this->mutantWithInvalidCode = new Mutant( - $invalidCodePath, - new Mutation( - 'foo', - [], - 'Plus', - $mutationAttributes, - '', - MutatedNode::wrap([]), - 0, - [], - ), - now($invalidCode), - now(''), - now(''), - ); - - $this->mutantWithValidCodeReferencingProjectFiles = new Mutant( - $validCodeReferencingProjectFilesPath, - new Mutation( - 'foo', - [], - 'Plus', - $mutationAttributes, - '', - MutatedNode::wrap([]), - 0, - [], - ), - now($validCodeReferencingProjectFiles), - now(''), - now(''), - ); - - $this->mutantWithValidCodeReferencingReflectionApi = new Mutant( - $validCodeReferencingReflectionApiPath, - new Mutation( - 'foo', - [], - 'Plus', - $mutationAttributes, - '', - MutatedNode::wrap([]), - 0, - [], - ), - now($validCodeReferencingProjectFiles), - now(''), - now(''), - ); - if (! defined('PSALM_VERSION')) { define('PSALM_VERSION', Versions::getVersion('vimeo/psalm')); }