faker->word()); $otherScope = new GlobalScope(); static::assertFalse($scope->isWithinScope($otherScope)); } /** * A type scope shall not be within the scope of a relation scope. * * @return void */ public function testTypeScopeIsNotWithinScope(): void { $scope = new RelationScope($this->faker->word()); $otherScope = new TypeScope($this->faker->word()); static::assertFalse($scope->isWithinScope($otherScope)); } /** * A relation scope of an unequal value shall not be within the scope of a relation scope. * * @return void */ public function testUnequalRelationIsNotWithinScope(): void { $scope = new RelationScope($this->faker->word()); $otherScope = new RelationScope($this->faker->word()); static::assertFalse($scope->isWithinScope($otherScope)); } /** * A relation scope of an equal value shall be within the scope of a relation scope. * * @return void */ public function testRelationIsWithinScope(): void { $relation = $this->faker->word(); $scope = new RelationScope($relation); $otherScope = new RelationScope($relation); static::assertTrue($scope->isWithinScope($otherScope)); } }