public abstract function elementInstancesProvider();
/**
- * Provides instances of the concrete class being tested.
+ * Returns the name of the concrete class being tested.
*
* @since 1.20
*
- * @return array
+ * @return string
*/
- public abstract function instanceProvider();
+ public abstract function getInstanceClass();
/**
- * Returns the name of the concrete class being tested.
+ * Provides instances of the concrete class being tested.
*
* @since 1.20
*
- * @return string
+ * @return array
*/
- public abstract function getInstanceClass();
+ public function instanceProvider() {
+ $instances = array();
+
+ foreach ( $this->elementInstancesProvider() as $elementInstances ) {
+ $instances[] = $this->getNew( $elementInstances );
+ }
+
+ return $this->arrayWrap( $instances );
+ }
/**
* @since 1.20