diff --git a/tests/StubTest.php b/tests/StubTest.php index 8d92421a1a2..6c835a65d8d 100644 --- a/tests/StubTest.php +++ b/tests/StubTest.php @@ -317,10 +317,10 @@ public function testPhpStormMetaParsingFile(): void 'creAte2("object"); $y2 = (new \Ns\MyClass)->creaTe2("exception"); - + $const1 = (new \Ns\MyClass)->creAte3(\Ns\MyClass::OBJECT); $const2 = (new \Ns\MyClass)->creaTe3("exception"); @@ -1194,94 +1194,6 @@ class Bar extends PartiallyStubbedClass {} $this->analyzeFile($file_path, new Context()); } - public function testStubFileWithPartialClassDefinitionWithCoercion(): void - { - $this->expectExceptionMessage('TypeCoercion'); - $this->expectException(CodeException::class); - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__), - ' - - - - - - - - - ', - ), - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'foo("dasda");', - ); - - $this->analyzeFile($file_path, new Context()); - } - - public function testStubFileWithPartialClassDefinitionGeneralReturnType(): void - { - $this->expectExceptionMessage('InvalidReturnStatement'); - $this->expectException(CodeException::class); - $this->project_analyzer = $this->getProjectAnalyzerWithConfig( - TestConfig::loadFromXML( - dirname(__DIR__), - ' - - - - - - - - - ', - ), - ); - - $file_path = getcwd() . '/src/somefile.php'; - - $this->addFile( - $file_path, - 'analyzeFile($file_path, new Context()); - } - public function testStubFileWithTemplatedClassDefinitionAndMagicMethodOverride(): void { $this->project_analyzer = $this->getProjectAnalyzerWithConfig(