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