Kraken\Util\Buffer\BufferInterface::isEmpty PHP Method

isEmpty() public method

Determine if the buffer is empty.
public isEmpty ( ) : boolean
return boolean
    public function isEmpty();

Usage Example

Example #1
0
 public function testApiDrain_EmptiesBuffer()
 {
     $result = $this->buffer->drain();
     $this->assertSame($this->initialString, $result);
     $this->assertSame('', (string) $this->buffer);
     $this->assertTrue($this->buffer->isEmpty());
 }
All Usage Examples Of Kraken\Util\Buffer\BufferInterface::isEmpty