inlineFragmentOnNonCompositeErrorMessage() static public méthode

 public function testScalarIsInvalidInlineFragmentType()
 {
     $this->expectFailsRule(new FragmentsOnCompositeTypes(), '
   fragment invalidFragment on Pet {
     ... on String {
       barks
     }
   }
     ', [FormattedError::create(FragmentsOnCompositeTypes::inlineFragmentOnNonCompositeErrorMessage('String'), [new SourceLocation(3, 16)])]);
 }