RequireOnceItopFile('/setup/feature_removal/ModelReflectionSerializer.php'); } public function testGetModelFromEnvironment() { $aModel = ModelReflectionSerializer::GetInstance()->GetModelFromEnvironment($this->GetTestEnvironment()); $this->assertEqualsCanonicalizing(MetaModel::GetClasses(), $aModel); } public function testGetModelFromEnvironmentFailure() { $this->expectException(\CoreException::class); $this->expectExceptionMessage("Cannot get classes"); ModelReflectionSerializer::GetInstance()->GetModelFromEnvironment('gabuzomeu'); } }