['image' => 'bar'], 'baz' => ['build' => '.']]; expect(fetchServices($configuration))->toBe($configuration); }); }); describe('from a version 2 configuration', function() { it('should fetch services from the dedicated section', function() { $configuration = ['version' => 2, 'services' => ['foo' => ['image' => 'bar'], 'baz' => ['build' => '.']]]; expect(fetchServices($configuration))->toBe($configuration['services']); }); }); });