/**
  * throws exceptions if $item is not callable
  *
  * this is a wrapper around our IsCallable check
  *
  * @param  mixed $item
  *         the container to check
  * @param  string $exception
  *         the class to use when throwing an exception
  * @return void
  */
 public static function check($item, $exception = E4xx_UnsupportedType::class)
 {
     // make sure we have a stringy type
     if (!IsCallable::check($item)) {
         throw new $exception(SimpleType::from($item));
     }
 }
 /**
  * @covers ::check
  * @dataProvider provideDataToTest
  */
 public function testCanCallStatically($data, $expectedResult)
 {
     // ----------------------------------------------------------------
     // setup your test
     // ----------------------------------------------------------------
     // perform the change
     $actualResult = IsCallable::check($data, $expectedResult);
     // ----------------------------------------------------------------
     // test the results
     $this->assertEquals($expectedResult, $actualResult);
 }