isWithinScope($otherScope)); } /** * A type scope shall be within the scope of a global scope. * * @return void */ public function testTypeScopeIsWithinScope(): void { $scope = new GlobalScope(); $otherScope = new TypeScope($this->faker->word()); static::assertTrue($scope->isWithinScope($otherScope)); } /** * A relation scope shall be within the scope of a global scope. * * @return void */ public function testRelationScopeIsWithinScope(): void { $scope = new GlobalScope(); $otherScope = new RelationScope($this->faker->word()); static::assertTrue($scope->isWithinScope($otherScope)); } }