Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\SpecificationBagDenormalizer\SimpleSpecificationsDenormalizerTest::testCanDenormalizeTheNoConstructor PHP Method

testCanDenormalizeTheNoConstructor() public method

    public function testCanDenormalizeTheNoConstructor()
    {
        $specs = ['__construct' => false];
        $expected = new SpecificationBag(new NoMethodCall(), new PropertyBag(), new MethodCallBag());
        $denormalizer = new SimpleSpecificationsDenormalizer(new FakeConstructorDenormalizer(), new FakePropertyDenormalizer(), new FakeCallsDenormalizer());
        $actual = $denormalizer->denormalize(new FakeFixture(), new FakeFlagParser(), $specs);
        $this->assertEquals($expected, $actual);
    }