/** * @expectedException \TypeError * @expectedExceptionMessage Expected method call value to be an array, got "NULL" instead. */ public function testDenormalizeWithInvalidMethodCalls() { $specs = ['__calls' => [null]]; $denormalizer = new SimpleSpecificationsDenormalizer(new FakeConstructorDenormalizer(), new FakePropertyDenormalizer(), new FakeCallsDenormalizer()); $denormalizer->denormalize(new FakeFixture(), new FakeFlagParser(), $specs); }