You are here

public function SpecTest::testFromInfoHandlesStrings in Little helpers 7.2

Test that Spec::fromInfo() can handle class-only string specs.

File

tests/Services/SpecTest.php, line 46

Class

SpecTest
Test the instantiating spec class.

Namespace

Drupal\little_helpers\Services

Code

public function testFromInfoHandlesStrings() {
  $a = Spec::fromInfo(\SplFixedArray::class)
    ->instantiate();
  $this
    ->assertInstanceOf(\SplFixedArray::class, $a);
}