Beispiel #1
0
 public function testHasOnlyScope()
 {
     $scope = new Scope(array("foo", "bar"));
     $this->assertTrue($scope->hasOnlyScope(new Scope(array("foo", "bar", "baz"))));
     $this->assertFalse($scope->hasOnlyScope(new Scope(array("foo"))));
     $this->assertFalse($scope->hasOnlyScope(new Scope()));
     $scopeTwo = new Scope();
     $this->assertTrue($scopeTwo->hasOnlyScope(new Scope(array("foo"))));
 }