Neos\Flow\Tests\Unit\Package\PackageFactoryTest::createThrowsExceptionIfCustomPackageFileCantBeAnalyzed PHP Method

createThrowsExceptionIfCustomPackageFileCantBeAnalyzed() public method

    public function createThrowsExceptionIfCustomPackageFileCantBeAnalyzed()
    {
        $packagePath = 'vfs://Packages/Some/Path/Some.Package/';
        $packageFilePath = $packagePath . 'Classes/Some/Package/Package.php';
        mkdir(dirname($packageFilePath), 0777, true);
        file_put_contents($packagePath . 'composer.json', '{"name": "some/package", "type": "neos-test", "autoload": { "psr-0": { "Foo": "bar" }}}');
        file_put_contents($packageFilePath, '<?php // no class');
        $this->packageFactory->create('vfs://Packages/', 'Some/Path/Some.Package/', 'Some.Package', 'some/package');
    }