function JsonSchemaTestTrait::doProphesize

Same name and namespace in other branches
  1. 11.x core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php \Drupal\Tests\serialization\Traits\JsonSchemaTestTrait::doProphesize()

Method to make prophecy public for use in data provider closures.

Return value

\Prophecy\Prophecy\ObjectProphecy<object> A new prophecy object.

File

core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php, line 42

Class

JsonSchemaTestTrait
Trait for testing JSON Schema validity and fit to sample data.

Namespace

Drupal\Tests\serialization\Traits

Code

public function doProphesize(?string $classOrInterface = NULL) : ObjectProphecy {
  return $this->prophesize($classOrInterface);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.