/**
  * write a boolean value to the stream
  *
  * @param  boolean $data
  * @return void
  */
 public function writeBoolean($data)
 {
     // robustness!
     RequireLogical::check($data, E4xx_UnsupportedType::class);
     // let the StreamHead do all the work :)
     $this->tokeniseAndWriteToStream($data);
 }
 /**
  * @covers ::check
  * @covers ::checkMixed
  * @dataProvider provideNonLogical
  * @expectedException GanbaroDigital\Reflection\Exceptions\E4xx_UnsupportedType
  */
 public function testRejectsNonLogicalWhenCalledStatically($item)
 {
     // ----------------------------------------------------------------
     // setup your test
     // ----------------------------------------------------------------
     // perform the change
     RequireLogical::check($item);
 }