Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\SpecificationBagDenormalizer\Constructor\ConstructorWithCallerDenormalizerTest::testThrowsExceptionIfInvalidConstructor PHP Method

testThrowsExceptionIfInvalidConstructor() public method

    public function testThrowsExceptionIfInvalidConstructor()
    {
        $constructor = ['@foo::bar::baz' => $arguments = ['<latitude()>', '1 (unique)' => '<longitude()>']];
        $fixture = new FakeFixture();
        $flagParser = new FakeFlagParser();
        $argumentsDenormalizer = new FakeArgumentsDenormalizer();
        $denormalizer = new ConstructorWithCallerDenormalizer(new SimpleConstructorDenormalizer($argumentsDenormalizer));
        $denormalizer->denormalize($fixture, $flagParser, $constructor);
    }