From c0cbe7f54622e1becd20ce0bad91ac164d1b6819 Mon Sep 17 00:00:00 2001 From: orklah Date: Fri, 5 Nov 2021 20:12:24 +0100 Subject: [PATCH] remove merge error --- tests/Config/ConfigTest.php | 196 ------------------------------------ 1 file changed, 196 deletions(-) diff --git a/tests/Config/ConfigTest.php b/tests/Config/ConfigTest.php index 8348eb048a9..82b48b7b0fe 100644 --- a/tests/Config/ConfigTest.php +++ b/tests/Config/ConfigTest.php @@ -860,202 +860,6 @@ class MyMockClass {} $this->analyzeFile($file_path, new Context()); } - public function testAllowedEchoFunction(): void - { - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__, 2), - ' - ' - ) - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'analyzeFile($file_path, new Context()); - } - - public function testForbiddenEchoFunctionViaFunctions(): void - { - $this->expectExceptionMessage('ForbiddenCode'); - $this->expectException(\Psalm\Exception\CodeException::class); - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__, 2), - ' - - - - - ' - ) - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'analyzeFile($file_path, new Context()); - } - - public function testForbiddenEchoFunctionViaFlag(): void - { - $this->expectExceptionMessage('ForbiddenEcho'); - $this->expectException(\Psalm\Exception\CodeException::class); - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__, 2), - ' - ' - ) - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'analyzeFile($file_path, new Context()); - } - - public function testAllowedPrintFunction(): void - { - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__, 2), - ' - ' - ) - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'analyzeFile($file_path, new Context()); - } - - public function testForbiddenPrintFunction(): void - { - $this->expectExceptionMessage('ForbiddenCode'); - $this->expectException(\Psalm\Exception\CodeException::class); - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__, 2), - ' - - - - - ' - ) - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'analyzeFile($file_path, new Context()); - } - - public function testAllowedVarExportFunction(): void - { - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__, 2), - ' - ' - ) - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'analyzeFile($file_path, new Context()); - } - - public function testForbiddenVarExportFunction(): void - { - $this->expectExceptionMessage('ForbiddenCode'); - $this->expectException(\Psalm\Exception\CodeException::class); - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__, 2), - ' - - - - - ' - ) - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'analyzeFile($file_path, new Context()); - } - - public function testForbiddenEmptyFunction(): void - { - $this->expectExceptionMessage('ForbiddenCode'); - $this->expectException(\Psalm\Exception\CodeException::class); - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__, 2), - ' - - - - - ' - ) - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'analyzeFile($file_path, new Context()); - } - public function testValidThrowInvalidCatch(): void { $this->expectExceptionMessage('InvalidCatch');