public function testCreate()
 {
     $instance = MismatchedDataTypesException::create(ScalarTypes::SCALAR_STRING, ScalarTypes::SCALAR_BOOLEAN);
     $this->assertInstanceOf(MismatchedDataTypesException::class, $instance);
 }
Example #2
0
 /**
  * @param string|object $received
  *
  * @throws MismatchedDataTypesException
  */
 protected function throwMismatchedDataTypeException($received)
 {
     throw MismatchedDataTypesException::create(static::class, $received);
 }