ScriptFUSIONTest\Unit\Porter\Mapper\Strategy\SubImportTest::testSpecificationCallback PHP Method

testSpecificationCallback() public method

    public function testSpecificationCallback()
    {
        $this->createSubImport(function ($data, $context) {
            self::assertSame('foo', $data);
            self::assertSame('bar', $context);
            return MockFactory::mockImportSpecification();
        });
        $this->import('foo', 'bar');
    }