isEmpty() public method

************************************************************************ SET PROPERTIES - Empty set ************************************************************************
public isEmpty ( ) : boolean
return boolean
Ejemplo n.º 1
0
 /**
  * @dataProvider dataProviderForSingleSet
  */
 public function testIsEmpty(array $members)
 {
     $set = new Set($members);
     $this->assertEquals(empty($members), $set->isEmpty());
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider dataProviderForSingleSet
  */
 public function testClear(array $members)
 {
     $set = new Set($members);
     $set->clear();
     $this->assertTrue($set->isEmpty());
     $this->assertEmpty($set->asArray());
     $this->assertEquals($set, new Set());
 }