src/Component/Legacy.php
public function save($data, string $type = self::LEGACY_TYPE_CASE): void
    {
        $this->saveWithName($data, $this->getLegacyName($type));
    }
public function save($data, string $type = self::LEGACY_TYPE_CASE): void
    {
        $this->saveWithName($data, $this->getLegacyName($type));
    }
Store legacy of test getLegacyFilename is called to generate filename from the test class name

@param string $type LEGACY_TYPE_CASE (shared by all tests in test case)
or LEGACY_TYPE_TEST (shared only by the same test function)
@throws LegacyException