<?php

namespace OOUI\Tests;

use OOUI\Element;
use OOUI\GroupElement;

/**
 * @covers \OOUI\GroupElement
 */
class GroupElementTest extends TestCase {

	public function testAddItemsWithArrayKeys() {
		$element = new class extends Element {
			use GroupElement;
		};
		$element->initializeGroupElement();

		$this->expectError();
		$element->addItems( [ 'foo' => new Element() ] );
	}

}

Test coverage for GroupElement failing on arrays with keys
Test coverage for GroupElement failing on arrays with keys

This is related to I657ca78.

Change-Id: I192fe022775a4be6c29bd9ee3a20dfb104ea7bbb
