public function testScalarIsInvalidFragmentType() { $this->expectFailsRule(new FragmentsOnCompositeTypes(), ' fragment scalarFragment on Boolean { bad } ', [$this->error('scalarFragment', 'Boolean', 2, 34)]); }