isEmpty() public method

Returns whether the access control list is empty or not
public isEmpty ( ) : boolean
return boolean True if list is empty, false otherwise
Beispiel #1
0
 public function testIsEmpty()
 {
     $accessControl = new SimpleArrayAdapter();
     $this->assertTrue($accessControl->isEmpty());
     $accessControl = new SimpleArrayAdapter(['foo' => 'bar']);
     $this->assertFalse($accessControl->isEmpty());
 }