/**
  * throws exceptions if $item is not a PHP class that exists
  *
  * this is a wrapper around our IsObject 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 PHP class that exists
     if (!IsObject::check($item)) {
         throw new $exception(SimpleType::from($item));
     }
 }
 /**
  * @covers ::check
  * @dataProvider provideDataToTest
  */
 public function testCanCallStatically($data, $expectedResult)
 {
     // ----------------------------------------------------------------
     // setup your test
     // ----------------------------------------------------------------
     // perform the change
     $actualResult = IsObject::check($data, $expectedResult);
     // ----------------------------------------------------------------
     // test the results
     $this->assertEquals($expectedResult, $actualResult);
 }