writeBool() public method

Encode a bool.
public writeBool ( Stream $stream, boolean $value )
$stream Protobuf\Stream
$value boolean
 /**
  * @dataProvider providerBool
  */
 public function testComputeBoolSize($value)
 {
     $stream = Stream::create();
     $this->writer->writeBool($stream, $value);
     $streamSize = $stream->getSize();
     $actualSize = $this->calculator->computeBoolSize($value);
     $this->assertEquals($streamSize, $actualSize);
 }